diff --git a/frappe/public/js/workflow_builder/components/Properties.vue b/frappe/public/js/workflow_builder/components/Properties.vue index f6a9df1285..cc2558d2c2 100644 --- a/frappe/public/js/workflow_builder/components/Properties.vue +++ b/frappe/public/js/workflow_builder/components/Properties.vue @@ -9,8 +9,9 @@ let title = ref("Workflow Details"); watch( () => store.workflow_doc?.document_type, async (newDocType, oldDocType) => { - if (newDocType && oldDocType && newDocType !== oldDocType) { - await store.update_is_submittable(); + if (!newDocType) return; + await store.update_is_submittable(); + if (newDocType !== oldDocType) { store.reset_non_submittable_states(); } }