Automatically load appropriate suggestions for brands and operators

This commit is contained in:
Pieter Vander Vennet 2024-05-23 11:28:51 +02:00
parent 3146fa0d26
commit 67f23eea14
11 changed files with 70 additions and 47 deletions

View file

@ -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
})
}