فهرست منبع

enhance: new selected node should be put on top of the nodes panel (#674)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 10 ماه پیش
والد
کامیت
aa940ce68b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      client/src/pages/databases/collections/search/DataExplorer.tsx

+ 1 - 1
client/src/pages/databases/collections/search/DataExplorer.tsx

@@ -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