Skip to content

Commit

Permalink
[Bugfix] Feature toolbar: child layer is pivot
Browse files Browse the repository at this point in the history
Funded by Le Grand Narbonne
  • Loading branch information
rldhont committed Nov 13, 2024
1 parent 82df066 commit a9d1c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/components/FeatureToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,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;
}
Expand Down

0 comments on commit a9d1c3b

Please sign in to comment.