mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 16:57:08 +02:00
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:
parent
920047d2db
commit
a99b91dd98
|
|
@ -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