fix: reload workflow data after save

This commit is contained in:
Shariq Ansari 2023-10-19 11:21:56 +05:30
parent 9af3b23b3d
commit 3aa37bc84c
2 changed files with 2 additions and 4 deletions

View file

@ -37,8 +37,7 @@ const {
} = useVueFlow();
let main = ref(null);
// this change to keep the state as it is when saving
//onClickOutside(main, loose_focus);
onClickOutside(main, loose_focus);
// cmd/ctrl + s to save the form
const { meta_s, ctrl_s, Backspace, meta_backspace, ctrl_backspace } = useMagicKeys();

View file

@ -81,8 +81,7 @@ export const useStore = defineStore("workflow-builder-store", () => {
doc.workflow_data = JSON.stringify(workflow_data);
await frappe.call("frappe.client.save", { doc });
frappe.toast("Workflow updated successfully");
// this change to keep the state as it is when saving
//fetch();
fetch();
} catch (e) {
console.error(e);
} finally {