forked from MapComplete/MapComplete
Fix: build
This commit is contained in:
parent
3547cb7c92
commit
a2782348a7
1 changed files with 4 additions and 4 deletions
|
|
@ -312,8 +312,8 @@ export default class LayerConfig extends WithContextLoader {
|
||||||
) {
|
) {
|
||||||
const targetLayerName = filter["sameAs"]
|
const targetLayerName = filter["sameAs"]
|
||||||
this.filterIsSameAs = targetLayerName
|
this.filterIsSameAs = targetLayerName
|
||||||
const targetLayer = allLayers.find(l => l.id === targetLayerName)
|
const targetLayer = allLayers?.find(l => l.id === targetLayerName)
|
||||||
if(!targetLayer){
|
if (allLayers && !targetLayer) {
|
||||||
throw "Target layer " + targetLayerName + " not found in this theme"
|
throw "Target layer " + targetLayerName + " not found in this theme"
|
||||||
}
|
}
|
||||||
filter = targetLayer?.filter
|
filter = targetLayer?.filter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue