Browse Source

change default partition name

tumao 4 years ago
parent
commit
090dcc390c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      client/src/http/Partition.ts
  2. 1 1
      client/src/pages/collections/Collection.tsx

+ 1 - 1
client/src/http/Partition.ts

@@ -25,7 +25,7 @@ export class PartitionHttp extends BaseModel implements PartitionView {
   }
 
   get _name() {
-    return this.name;
+    return this.name === '_default' ? 'Default partition' : this.name;
   }
 
   get _rowCount() {

+ 1 - 1
client/src/pages/collections/Collection.tsx

@@ -36,7 +36,7 @@ const Collection = () => {
       ? parseLocationSearch(location.search)
       : { activeIndex: TAB_EMUM.partition };
     return Number(activeIndex);
-  }, [location, TAB_EMUM]);
+  }, [location]);
 
   const handleTabChange = (activeIndex: number) => {
     const path = location.pathname;