From 5d95abf01fcde437c53410ee4babbdcf1fab1a2f Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 24 Jan 2022 00:24:51 +0100 Subject: [PATCH] Fix build --- Customizations/SharedTagRenderings.ts | 9 +++++++++ scripts/generateLayerOverview.ts | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/Customizations/SharedTagRenderings.ts b/Customizations/SharedTagRenderings.ts index ad0aa83e2..b0b868143 100644 --- a/Customizations/SharedTagRenderings.ts +++ b/Customizations/SharedTagRenderings.ts @@ -31,14 +31,23 @@ export default class SharedTagRenderings { if (!iconsOnly) { for (const key in questions) { + if(key === "id"){ + continue + } dict.set(key, questions[key]) } } for (const key in icons) { + if(key === "id"){ + continue + } dict.set(key, icons[key]) } dict.forEach((value, key) => { + if(key === "id"){ + return + } value.id = value.id ?? key; }) diff --git a/scripts/generateLayerOverview.ts b/scripts/generateLayerOverview.ts index f0b63f47f..2cdc402e1 100644 --- a/scripts/generateLayerOverview.ts +++ b/scripts/generateLayerOverview.ts @@ -72,6 +72,9 @@ class LayerOverviewUtils { const dict = new Map(); for (const key in questions["default"]) { + if(key === "id"){ + continue + } questions[key].id = key; dict.set(key, questions[key]) } @@ -84,6 +87,9 @@ class LayerOverviewUtils { } dict.forEach((value, key) => { + if(key === "id"){ + return + } value.id = value.id ?? key; })