Skip to content

Commit

Permalink
Use both archetype and template name for reference key
Browse files Browse the repository at this point in the history
  • Loading branch information
askask committed Aug 19, 2024
1 parent d384175 commit e974a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/shared/models/aqb/aqb-ui.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e974a9c

Please sign in to comment.