fix(editor): Clear pin data on workspace initialization of production execution (backport to release-candidate/2.23.x) (#31258)

Co-authored-by: Charlie Kolb <charlie@n8n.io>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
n8n-assistant[bot] 2026-06-01 08:45:36 +00:00 committed by GitHub
parent 4a76c5be6e
commit 87f7eb6e97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {