From 87f7eb6e976b2d3a2bcdb15b134e480a033d9352 Mon Sep 17 00:00:00 2001 From: "n8n-assistant[bot]" <100856346+n8n-assistant[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 08:45:36 +0000 Subject: [PATCH] fix(editor): Clear pin data on workspace initialization of production execution (backport to release-candidate/2.23.x) (#31258) Co-authored-by: Charlie Kolb 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) {