Explorar o código

hide bool field

czhen %!s(int64=3) %!d(string=hai) anos
pai
achega
3265450c4d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 =
     const primaryKey =
       schemaList.find(v => v._isPrimaryKey === true)?._fieldName || '';
       schemaList.find(v => v._isPrimaryKey === true)?._fieldName || '';
     setPrimaryKey(primaryKey);
     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.
   // Get fields at first or collection name changed.