fix(editor): Update selected node when navigating via flowing nodes (#12581)

This commit is contained in:
Alex Grozav 2025-01-13 13:35:56 +02:00 committed by GitHub
parent 13bf69f75c
commit 88659d8a29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -996,7 +996,11 @@ async function onRevertAddNode({ node }: { node: INodeUi }) {
}
async function onSwitchActiveNode(nodeName: string) {
const node = workflowsStore.getNodeByName(nodeName);
if (!node) return;
setNodeActiveByName(nodeName);
selectNodes([node.id]);
}
async function onOpenSelectiveNodeCreator(node: string, connectionType: NodeConnectionType) {