Skip to content

Commit

Permalink
enhance: new selected node should be put on top of the nodes panel (#674
Browse files Browse the repository at this point in the history
)

Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid authored Oct 22, 2024
1 parent e2d5cc9 commit aa940ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const DataExplorer = ({
node => node.id !== d.id
);
} else {
selectedNodesRef.current = [...selectedNodesRef.current, d];
selectedNodesRef.current = [d, ...selectedNodesRef.current];
}

// Add circle around the selected node and remove it when unselected
Expand Down

0 comments on commit aa940ce

Please sign in to comment.