Browse Source

hide bool field

czhen 3 years ago
parent
commit
3265450c4d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      client/src/pages/query/Query.tsx

+ 3 - 1
client/src/pages/query/Query.tsx

@@ -119,7 +119,9 @@ const Query: FC<{
     const primaryKey =
       schemaList.find(v => v._isPrimaryKey === true)?._fieldName || '';
     setPrimaryKey(primaryKey);
-    setFields(nameList);
+    // Temporarily hide bool field due to incorrect return from SDK.
+    const fieldWithoutBool = nameList.filter(i => i.type !== 'bool');
+    setFields(fieldWithoutBool);
   };
 
   // Get fields at first or collection name changed.