forked from MapComplete/MapComplete
Automatically load appropriate suggestions for brands and operators
This commit is contained in:
parent
3146fa0d26
commit
67f23eea14
11 changed files with 70 additions and 47 deletions
|
|
@ -883,7 +883,8 @@ export class TagRenderingConfigUtils {
|
|||
return config
|
||||
}
|
||||
const clone: TagRenderingConfig = Object.create(config)
|
||||
clone.mappings = [...clone.mappings ?? [], ...extraMappings]
|
||||
const oldMappingsCloned = clone.mappings?.map(m => ({ ...m, priorityIf: m.priorityIf ?? TagUtils.Tag("id~*") })) ?? []
|
||||
clone.mappings = [...oldMappingsCloned, ...extraMappings]
|
||||
return clone
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue