Explorar el Código

hide bool field

czhen hace 3 años
padre
commit
3265450c4d
Se han modificado 1 ficheros con 3 adiciones y 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 =
       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.