From ddfb7988ed5a127011cb810056928b2a976da240 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 22 Jan 2024 04:23:07 +0100 Subject: [PATCH] Add undefined robustness --- src/UI/Popup/AllTagsPanel.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/UI/Popup/AllTagsPanel.svelte b/src/UI/Popup/AllTagsPanel.svelte index e8cf74526a..990005952f 100644 --- a/src/UI/Popup/AllTagsPanel.svelte +++ b/src/UI/Popup/AllTagsPanel.svelte @@ -12,7 +12,11 @@ * The names (keys) of the calculated tags. Each will normally start with an underscore (but in rare cases not) */ let calculatedTags: string[] = [] - for (const [name, _, __] of layer.calculatedTags ?? []) { + for (const calculated of layer.calculatedTags ?? []) { + if(calculated){ + continue + } + const name = calculated[0] calculatedTags.push(name) } let knownValues: Store = tags.map(tags => Object.keys(tags))