fix undo autosave false

This commit is contained in:
Pete Matsyburka committed 2026-09-02 20:42:08 +03:00
1 parent 436d947f6a
commit 785eb789ad
1 file changed
+2 -2
+2 -2
View File
@@ -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({