mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix workflow saving
'id' should not be omitted when building a workflow, it makes workflows always save as a copy
This commit is contained in:
@ -24,12 +24,12 @@ export const buildWorkflow: BuildWorkflowFunction = ({
|
||||
edges,
|
||||
workflow,
|
||||
}) => {
|
||||
const clonedWorkflow = cloneDeep(workflow);
|
||||
const clonedWorkflow = omit(cloneDeep(workflow), 'isTouched');
|
||||
const clonedNodes = cloneDeep(nodes);
|
||||
const clonedEdges = cloneDeep(edges);
|
||||
|
||||
const newWorkflow: WorkflowV2 = {
|
||||
...omit(clonedWorkflow, 'isTouched', 'id'),
|
||||
...clonedWorkflow,
|
||||
nodes: [],
|
||||
edges: [],
|
||||
};
|
||||
|
Reference in New Issue
Block a user