From 7414f68acca70f680c5fcd32f9474d2a07b1f085 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 13 Mar 2025 07:14:55 +1000 Subject: [PATCH] fix(ui): save as marks workflow as not touched --- .../src/features/workflowLibrary/hooks/useCreateNewWorkflow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/workflowLibrary/hooks/useCreateNewWorkflow.ts b/invokeai/frontend/web/src/features/workflowLibrary/hooks/useCreateNewWorkflow.ts index 2df850a895..95281640fc 100644 --- a/invokeai/frontend/web/src/features/workflowLibrary/hooks/useCreateNewWorkflow.ts +++ b/invokeai/frontend/web/src/features/workflowLibrary/hooks/useCreateNewWorkflow.ts @@ -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'),