Browse Source

fix: Unable to completely delete the contents of the database input field using the keyboard. (#672)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 8 months ago
parent
commit
e343a2b9e2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      client/src/pages/connect/AuthForm.tsx

+ 3 - 3
client/src/pages/connect/AuthForm.tsx

@@ -72,9 +72,9 @@ export const AuthForm = () => {
     value: string | boolean
   ) => {
     // set database to default if empty
-    if (key === 'database' && value === '') {
-      value = MILVUS_DATABASE;
-    }
+    // if (key === 'database' && value === '') {
+    //   value = MILVUS_DATABASE;
+    // }
     setAuthReq(v => ({ ...v, [key]: value }));
   };
   // handle menu clicked