From 695800b2456aefe82d5fe1f148d2bd96e549a5c9 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 23 Aug 2024 11:39:48 +0200 Subject: [PATCH] Fix typing error with NSI-question --- src/Models/ThemeConfig/TagRenderingConfig.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Models/ThemeConfig/TagRenderingConfig.ts b/src/Models/ThemeConfig/TagRenderingConfig.ts index d83939e7d..7875b9ec9 100644 --- a/src/Models/ThemeConfig/TagRenderingConfig.ts +++ b/src/Models/ThemeConfig/TagRenderingConfig.ts @@ -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) => ( { + ...m, + addExtraTags: [new Tag("nobrand","")], + priorityIf: m.priorityIf ?? TagUtils.Tag("id~*"), + })) ?? []; clone.mappings = [...oldMappingsCloned, ...extraMappings] return clone })