From 7bbb2cf968e2e850d5c17ddfcdb01af408a7bef9 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 25 Sep 2024 12:18:02 +0200 Subject: [PATCH] Use both archetype and template name for reference key (#628) --- src/app/shared/models/aqb/aqb-ui.model.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/shared/models/aqb/aqb-ui.model.ts b/src/app/shared/models/aqb/aqb-ui.model.ts index 830569a50..0f8a9c44b 100644 --- a/src/app/shared/models/aqb/aqb-ui.model.ts +++ b/src/app/shared/models/aqb/aqb-ui.model.ts @@ -29,9 +29,10 @@ export class AqbUiModel { const archetypeId = clickEvent.item.archetypeId || clickEvent.item.parentArchetypeId const compositionReferenceKey = clickEvent.compositionId const archetypeReferenceKey = archetypeId + const templateId = clickEvent.templateId const compositionReferenceId = this.setReference(compositionReferenceKey) - const archetypeReferenceId = this.setReference(archetypeReferenceKey) + const archetypeReferenceId = this.setReference(archetypeReferenceKey + templateId) if (!this.usedTemplates.includes(clickEvent.templateId)) { this.usedTemplates.push(clickEvent.templateId)