mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-22 12:31:57 +02:00
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:
parent
4a76c5be6e
commit
87f7eb6e97
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user