From e974a9cbbcc2e04e4f6b1020c674e5d5828b777d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 19 Aug 2024 12:00:00 +0200 Subject: [PATCH] Use both archetype and template name for reference key --- 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)