From c46adbce21e63253a518228c60ec4ce1b962161d Mon Sep 17 00:00:00 2001 From: Elena Poelman Date: Fri, 6 Dec 2024 14:26:25 +0100 Subject: [PATCH] apply new template instantiate method on built-in standard templates --- .changeset/strong-rats-shave.md | 5 +++++ app/components/document-creator.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/strong-rats-shave.md diff --git a/.changeset/strong-rats-shave.md b/.changeset/strong-rats-shave.md new file mode 100644 index 000000000..968e5b16b --- /dev/null +++ b/.changeset/strong-rats-shave.md @@ -0,0 +1,5 @@ +--- +'frontend-gelinkt-notuleren': patch +--- + +Apply new `instantiateUuids` method onto built-in standard templates diff --git a/app/components/document-creator.js b/app/components/document-creator.js index 3f6474698..13b96a0d0 100644 --- a/app/components/document-creator.js +++ b/app/components/document-creator.js @@ -103,7 +103,8 @@ export default class DocumentCreatorComponent extends Component { return templateUuidInstantiator(trimmedHtml); } else { const trimmedHtml = this.template.body.replace(/>\s+<'); - return instantiateUuids(trimmedHtml); + // If it's a built=in template, we apply both instantiate functions + return instantiateUuids(templateUuidInstantiator(trimmedHtml)); } } else return ''; }