From c26fe7eb0fc66b827f1a18f4ab279465a80615da Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Mon, 8 Jul 2024 16:15:52 +0200
Subject: [PATCH] [editor] Fix templates to update unit definition

---
 projects/editor/src/app/services/template.service.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/projects/editor/src/app/services/template.service.ts b/projects/editor/src/app/services/template.service.ts
index c11e4dc6f..299101d62 100644
--- a/projects/editor/src/app/services/template.service.ts
+++ b/projects/editor/src/app/services/template.service.ts
@@ -23,6 +23,7 @@ export class TemplateService {
   async applyTemplate(templateName: string) {
     const templateSection: Section = await this.createTemplateSection(templateName);
     this.unitService.getSelectedPage().addSection(templateSection);
+    this.unitService.updateUnitDefinition();
   }
 
   private createTemplateSection(templateName: string): Promise<Section> {
-- 
GitLab