fix(editor): Fix adding connections when initializing workspace in templates view on new canvas (#11451)

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));
}
/**