We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bd98ec commit 95352c5Copy full SHA for 95352c5
1 file changed
resources/js/tasks/edit.js
@@ -240,6 +240,9 @@ const main = new Vue({
240
data,
241
task_element_id: this.task.element_id,
242
})
243
+ .then(response => {
244
+ return this.eraseDraft();
245
+ })
246
.then((response) => {
247
this.fieldsToUpdate.splice(0);
248
ProcessMaker.alert(this.$t("The request data was saved."), "success");
@@ -446,7 +449,7 @@ const main = new Vue({
446
449
},
447
450
eraseDraft() {
448
451
this.formDataWatcherActive = false;
- ProcessMaker.apiClient
452
+ return ProcessMaker.apiClient
453
.delete(`drafts/${this.task.id}`)
454
455
this.resetRequestFiles(response);
0 commit comments