From 88659d8a2901786c894902e19466f395bcdaab8e Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Mon, 13 Jan 2025 13:35:56 +0200 Subject: [PATCH] fix(editor): Update selected node when navigating via flowing nodes (#12581) --- packages/editor-ui/src/views/NodeView.v2.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index 9fa92a2053..8c16967273 100644 --- a/packages/editor-ui/src/views/NodeView.v2.vue +++ b/packages/editor-ui/src/views/NodeView.v2.vue @@ -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) {