From 7120af21c14174097ce2f71da53c15d6fca41c40 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 15 Sep 2021 13:19:43 +0200 Subject: [PATCH] Fix caching --- Logic/SimpleMetaTagger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/SimpleMetaTagger.ts b/Logic/SimpleMetaTagger.ts index 4b00c2f40..27f4225b9 100644 --- a/Logic/SimpleMetaTagger.ts +++ b/Logic/SimpleMetaTagger.ts @@ -83,7 +83,7 @@ export default class SimpleMetaTagger { }, (feature => { - const units = [].concat(Utils.NoNull(State.state?.layoutToUse?.data?.layers?.map(layer => layer.units))); + const units = Utils.NoNull([].concat(State.state?.layoutToUse?.data?.layers?.map(layer => layer.units ?? []))); let rewritten = false; for (const key in feature.properties) { if (!feature.properties.hasOwnProperty(key)) {