mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): use getDefaultForm when resetting form
This commit is contained in:
@@ -26,7 +26,6 @@ import type {
|
||||
WorkflowV3,
|
||||
} from 'features/nodes/types/workflow';
|
||||
import {
|
||||
buildContainer,
|
||||
getDefaultForm,
|
||||
isContainerElement,
|
||||
isHeadingElement,
|
||||
@@ -116,11 +115,7 @@ export const workflowSlice = createSlice({
|
||||
state.id = action.payload;
|
||||
},
|
||||
formReset: (state) => {
|
||||
const rootElement = buildContainer('column', []);
|
||||
state.form = {
|
||||
elements: { [rootElement.id]: rootElement },
|
||||
rootElementId: rootElement.id,
|
||||
};
|
||||
state.form = getDefaultForm();
|
||||
},
|
||||
formElementAdded: (
|
||||
state,
|
||||
|
||||
Reference in New Issue
Block a user