Fix build
This commit is contained in:
parent
792631e91e
commit
5d95abf01f
2 changed files with 15 additions and 0 deletions
|
@ -31,14 +31,23 @@ export default class SharedTagRenderings {
|
||||||
|
|
||||||
if (!iconsOnly) {
|
if (!iconsOnly) {
|
||||||
for (const key in questions) {
|
for (const key in questions) {
|
||||||
|
if(key === "id"){
|
||||||
|
continue
|
||||||
|
}
|
||||||
dict.set(key, <TagRenderingConfigJson>questions[key])
|
dict.set(key, <TagRenderingConfigJson>questions[key])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const key in icons) {
|
for (const key in icons) {
|
||||||
|
if(key === "id"){
|
||||||
|
continue
|
||||||
|
}
|
||||||
dict.set(key, <TagRenderingConfigJson>icons[key])
|
dict.set(key, <TagRenderingConfigJson>icons[key])
|
||||||
}
|
}
|
||||||
|
|
||||||
dict.forEach((value, key) => {
|
dict.forEach((value, key) => {
|
||||||
|
if(key === "id"){
|
||||||
|
return
|
||||||
|
}
|
||||||
value.id = value.id ?? key;
|
value.id = value.id ?? key;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,9 @@ class LayerOverviewUtils {
|
||||||
const dict = new Map<string, TagRenderingConfigJson>();
|
const dict = new Map<string, TagRenderingConfigJson>();
|
||||||
|
|
||||||
for (const key in questions["default"]) {
|
for (const key in questions["default"]) {
|
||||||
|
if(key === "id"){
|
||||||
|
continue
|
||||||
|
}
|
||||||
questions[key].id = key;
|
questions[key].id = key;
|
||||||
dict.set(key, <TagRenderingConfigJson>questions[key])
|
dict.set(key, <TagRenderingConfigJson>questions[key])
|
||||||
}
|
}
|
||||||
|
@ -84,6 +87,9 @@ class LayerOverviewUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
dict.forEach((value, key) => {
|
dict.forEach((value, key) => {
|
||||||
|
if(key === "id"){
|
||||||
|
return
|
||||||
|
}
|
||||||
value.id = value.id ?? key;
|
value.id = value.id ?? key;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue