Fix build

This commit is contained in:
pietervdvn 2022-01-24 00:24:51 +01:00
parent 792631e91e
commit 5d95abf01f
2 changed files with 15 additions and 0 deletions

View file

@ -31,14 +31,23 @@ export default class SharedTagRenderings {
if (!iconsOnly) {
for (const key in questions) {
if(key === "id"){
continue
}
dict.set(key, <TagRenderingConfigJson>questions[key])
}
}
for (const key in icons) {
if(key === "id"){
continue
}
dict.set(key, <TagRenderingConfigJson>icons[key])
}
dict.forEach((value, key) => {
if(key === "id"){
return
}
value.id = value.id ?? key;
})

View file

@ -72,6 +72,9 @@ class LayerOverviewUtils {
const dict = new Map<string, TagRenderingConfigJson>();
for (const key in questions["default"]) {
if(key === "id"){
continue
}
questions[key].id = key;
dict.set(key, <TagRenderingConfigJson>questions[key])
}
@ -84,6 +87,9 @@ class LayerOverviewUtils {
}
dict.forEach((value, key) => {
if(key === "id"){
return
}
value.id = value.id ?? key;
})