Fix tests

This commit is contained in:
Pieter Vander Vennet 2024-04-08 14:17:19 +02:00
parent c2e9578f71
commit 22785095c5

View file

@ -72,7 +72,7 @@ class ExpandFilter extends DesugaringStep<LayerConfigJson> {
continue
}
const matchingTr =<TagRenderingConfigJson> json.tagRenderings.find(tr => tr["id"] === filter)
const matchingTr =<TagRenderingConfigJson> json.tagRenderings.find(tr => !!tr && tr["id"] === filter)
if(matchingTr){
if(!(matchingTr.mappings?.length >= 1)){
context.enters("filter",i ).err("Found a matching tagRendering to base a filter on, but this tagRendering does not contain any mappings")