fix(editor): Fix adding connections when initializing workspace in templates view on new canvas (#11451)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run

This commit is contained in:
Alex Grozav 2024-10-29 16:36:25 +02:00 committed by GitHub
parent dcd6038c30
commit ea47b025fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1431,7 +1431,7 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
// Add nodes and connections
await addNodes(data.nodes, { keepPristine: true });
workflowsStore.setConnections(data.connections);
await addConnections(mapLegacyConnectionsToCanvasConnections(data.connections, data.nodes));
}
/**