fix undo autosave false

pull/721/head
Pete Matsyburka 3 weeks ago
parent 436d947f6a
commit 785eb789ad

@ -3525,6 +3525,8 @@ export default {
this.onChange(this.template) this.onChange(this.template)
} }
this.pushUndo()
if (!this.autosave && !force) { if (!this.autosave && !force) {
return Promise.resolve({}) return Promise.resolve({})
} }
@ -3535,8 +3537,6 @@ export default {
} }
}) })
this.pushUndo()
return this.baseFetch(`/templates/${this.template.id}`, { return this.baseFetch(`/templates/${this.template.id}`, {
method: 'PUT', method: 'PUT',
body: JSON.stringify({ body: JSON.stringify({

Loading…
Cancel
Save