From 83da1e85d13d59f55faf60096224e6c9ae044aa7 Mon Sep 17 00:00:00 2001 From: rldhont Date: Wed, 13 Nov 2024 10:03:01 +0100 Subject: [PATCH] [Bugfix] Feature toolbar: child layer is pivot Funded by Le Grand Narbonne --- assets/src/components/FeatureToolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/src/components/FeatureToolbar.js b/assets/src/components/FeatureToolbar.js index 0e4b451ba7..8b7ee8aa15 100644 --- a/assets/src/components/FeatureToolbar.js +++ b/assets/src/components/FeatureToolbar.js @@ -365,7 +365,7 @@ export default class FeatureToolbar extends HTMLElement { // Check if the child layer has insert capabilities let [childFeatureType, childLayerConfig] = lizMap.getLayerConfigById(relation.referencingLayer); - let isPivot = !!lizMap.config?.relations?.pivot?.[relation.referencingLayer] + let isPivot = lizMap.config?.attributeLayers?.[childFeatureType]?.pivot === "True" && !!lizMap.config?.relations?.pivot?.[relation.referencingLayer] if (isPivot || lizMap.config?.editionLayers?.[childFeatureType]?.capabilities?.createFeature !== "True") { return; }