From a99b91dd987eaa644f655fc94e1ff7272f390ebb Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Thu, 28 May 2026 09:39:43 +0200 Subject: [PATCH] fix(editor): Clear pin data on workspace initialization of production execution (#31218) Co-authored-by: Claude Opus 4.7 --- .../editor-ui/src/app/composables/useCanvasOperations.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/frontend/editor-ui/src/app/composables/useCanvasOperations.ts b/packages/frontend/editor-ui/src/app/composables/useCanvasOperations.ts index 916e109bcbf..1958ea5de94 100644 --- a/packages/frontend/editor-ui/src/app/composables/useCanvasOperations.ts +++ b/packages/frontend/editor-ui/src/app/composables/useCanvasOperations.ts @@ -3060,12 +3060,16 @@ export function useCanvasOperations() { toast.showMessage({ title, message, type: 'error', duration: 0 }); } - await initializeWorkspace(data.workflowData); + const { workflowDocumentStore: openedDocumentStore } = await initializeWorkspace( + data.workflowData, + ); workflowState.setWorkflowExecutionData(data); if (!['manual', 'evaluation'].includes(data.mode)) { - workflowDocumentStore.value.setPinData({}); + // Clear on the store initializeWorkspace just populated — injection + // may resolve to a different store than the one initState wrote to. + openedDocumentStore.setPinData({}); } if (nodeId) {