diff --git a/src/services/workflowService.ts b/src/services/workflowService.ts index 788798390..4fcbd44b5 100644 --- a/src/services/workflowService.ts +++ b/src/services/workflowService.ts @@ -344,8 +344,7 @@ export const useWorkflowService = () => { options: { position?: Vector2 } = {} ) => { const loadedWorkflow = await workflow.load() - const data = loadedWorkflow.initialState - const workflowJSON = data + const workflowJSON = toRaw(loadedWorkflow.initialState) const old = localStorage.getItem('litegrapheditor_clipboard') // unknown conversion: ComfyWorkflowJSON is stricter than LiteGraph's // serialisation schema.