From 785eb789ad0fc46f354b23f03c5aac7e3ef08867 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 2 Sep 2026 20:42:08 +0300 Subject: [PATCH] fix undo autosave false --- app/javascript/template_builder/builder.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index a834e373..f0146f39 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -3525,6 +3525,8 @@ export default { this.onChange(this.template) } + this.pushUndo() + if (!this.autosave && !force) { return Promise.resolve({}) } @@ -3535,8 +3537,6 @@ export default { } }) - this.pushUndo() - return this.baseFetch(`/templates/${this.template.id}`, { method: 'PUT', body: JSON.stringify({