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