Browse Source

remove console and add comment

Signed-off-by: nameczz <zizhao.chen@zilliz.com>
nameczz 3 years ago
parent
commit
3c55a68d5a

+ 0 - 1
client/src/components/advancedSearch/Condition.tsx

@@ -116,7 +116,6 @@ const Condition: FC<ConditionProps> = props => {
   const handleValueChange = (event: React.ChangeEvent<HTMLInputElement>) => {
   const handleValueChange = (event: React.ChangeEvent<HTMLInputElement>) => {
     const value = event.target.value;
     const value = event.target.value;
     const type = conditionField?.type;
     const type = conditionField?.type;
-    console.log('---value cahnge ---', type, value);
     setConditionValue(
     setConditionValue(
       type === DataTypeStringEnum.VarChar ? `"${value}"` : value
       type === DataTypeStringEnum.VarChar ? `"${value}"` : value
     );
     );

+ 2 - 1
client/src/components/layout/GlobalEffect.tsx

@@ -41,7 +41,8 @@ const GlobalEffect = (props: { children: React.ReactNode }) => {
         }
         }
         if (response.data) {
         if (response.data) {
           const { message: errMsg } = response.data;
           const { message: errMsg } = response.data;
-          console.log('-----err ----', errMsg);
+          // After create index ,we will try to get index progress
+          // if index created success before setTimeout , will throw this error, should ignore it.
           if (errMsg.includes('no index is created')) {
           if (errMsg.includes('no index is created')) {
             return Promise.reject(error);
             return Promise.reject(error);
           }
           }

+ 1 - 1
client/src/pages/schema/CreateForm.tsx

@@ -156,7 +156,7 @@ const CreateForm = (
     key: 'index_name',
     key: 'index_name',
     onChange: (value: string) => updateForm('index_name', value),
     onChange: (value: string) => updateForm('index_name', value),
     variant: 'filled',
     variant: 'filled',
-    placeholder: 'alias name',
+    placeholder: 'Index name',
     fullWidth: true,
     fullWidth: true,
     validations: [
     validations: [
       {
       {