Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix race in selected template reverting to default on the campaign page. Closes #2461.

Kailash Nadh3895fbda128f
diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue
index f12a960e..1a1c6fe1 100644
--- a/frontend/src/components/Editor.vue
+++ b/frontend/src/components/Editor.vue
@@ -318,6 +318,10 @@ export default {
if (this.self.contentType === 'visual') {
this.visualTemplateId = this.validTemplates[0]?.id || null;
} else {
+ if (this.templateId) {
+ return;
+ }
+
const defaultTemplate = this.validTemplates.find((t) => t.isDefault === true);
this.templateId = defaultTemplate?.id || this.validTemplates[0]?.id || null;
}