Skip to content

Commit

Permalink
Use both archetype and template name for reference key (NUM-Forschung…
Browse files Browse the repository at this point in the history
  • Loading branch information
askask authored Sep 25, 2024
1 parent 4b6b7ef commit 7bbb2cf
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 7bbb2cf

Please sign in to comment.