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'),