Browse Source

fix: drop collection on the tree should navigate to the list page (#800)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 4 months ago
parent
commit
be93fb594e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      client/src/pages/databases/tree/TreeContextMenu.tsx

+ 3 - 1
client/src/pages/databases/tree/TreeContextMenu.tsx

@@ -142,7 +142,9 @@ export const TreeContextMenu = (props: {
                   component: (
                     <DropCollectionDialog
                       collections={[contextMenu.object] as CollectionObject[]}
-                      onDelete={async () => {}}
+                      onDelete={async () => {
+                        navigate(`/databases/${database}`);
+                      }}
                     />
                   ),
                 },