mirror of
https://github.com/docusealco/docuseal
synced 2026-11-14 15:52:32 -05:00
fix undo autosave false
This commit is contained in:
1 parent
436d947f6a
commit
785eb789ad
1 file changed
+2
-2
@@ -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({
|
||||||
|
|||||||
Reference in new issue
Block a user