fix(editor): Clear pin data on workspace initialization of production execution (#31218)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Charlie Kolb 2026-05-28 09:39:43 +02:00 committed by GitHub
parent 920047d2db
commit a99b91dd98
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) {