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 ''; }