From 5013df0f3f80e34742f97a53031232aa0baf1942 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 14 Sep 2023 19:19:22 -0300 Subject: [PATCH] feat(reactflowUtils.ts): add logic to deselect group node when expanding it The changes in this commit add logic to deselect a group node when it is expanded in the ReactFlowUtils file. This is done by setting the 'selected' property of the group node to false. The purpose of this change is to ensure that when a group node is expanded, it is not selected by default. --- src/frontend/src/utils/reactflowUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 7818f3965..43279aa33 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -843,6 +843,7 @@ export function expandGroupNode( gNodes[nodeIndex].data.node.template[field].show = show; gNodes[nodeIndex].data.node.template[field].advanced = advanced; gNodes[nodeIndex].data.node.template[field].display_name = display_name; + gNodes[nodeIndex].selected=false; } });