Fix typing error with NSI-question

This commit is contained in:
Pieter Vander Vennet 2024-08-23 11:39:48 +02:00
parent 60eeab9aa7
commit 695800b245

View file

@ -973,12 +973,11 @@ export class TagRenderingConfigUtils {
}
const clone: TagRenderingConfig = Object.create(config)
// The original mappings get "priorityIf" set
const oldMappingsCloned =
clone.mappings?.map((m) => ({
...m,
addExtraTags: "nobrand=",
priorityIf: m.priorityIf ?? TagUtils.Tag("id~*"),
})) ?? []
const oldMappingsCloned = clone.mappings?.map((m) => (<Mapping> {
...m,
addExtraTags: [new Tag("nobrand","")],
priorityIf: m.priorityIf ?? TagUtils.Tag("id~*"),
})) ?? [];
clone.mappings = [...oldMappingsCloned, ...extraMappings]
return clone
})