forked from MapComplete/MapComplete
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) {
|
||||
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;
|
||||
})
|
||||
|
||||
|
|
|
@ -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;
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue