fix(ui): save as marks workflow as not touched

This commit is contained in:
psychedelicious
2025-03-13 07:14:55 +10:00
parent a984462b80
commit 7414f68acc

View File

@@ -67,11 +67,11 @@ export const useCreateLibraryWorkflow = (): CreateLibraryWorkflowReturn => {
dispatch(workflowIDChanged(id));
dispatch(workflowNameChanged(name));
dispatch(workflowCategoryChanged(category));
dispatch(workflowSaved());
dispatch(newWorkflowSaved({ category }));
// When a workflow is saved, the form field initial values are updated to the current form field values
dispatch(formFieldInitialValuesChanged({ formFieldInitialValues: getFormFieldInitialValues() }));
updateOpenedAt({ workflow_id: id });
dispatch(workflowSaved());
onSuccess && onSuccess();
toast.update(toastRef.current, {
title: t('workflows.workflowSaved'),