diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx index 849c5a9b91..d56abc8aa1 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx @@ -129,9 +129,13 @@ const ServiceSettings: React.FC = () => { initialValues: { status: flowStatus || "online", }, - onSubmit: async ({ status }) => { - await updateFlowStatus(status); - setIsAlertOpen(true); + onSubmit: async (values, { resetForm }) => { + const isSuccess = await updateFlowStatus(values.status); + if (isSuccess) { + setIsAlertOpen(true); + // Reset "dirty" status to disable Save & Reset buttons + resetForm({ values }); + } }, });