Browse Source

fix: vector types are included in the element type options (#590)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 year ago
parent
commit
8a2cd103d2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      client/src/pages/databases/collections/CreateFields.tsx

+ 4 - 1
client/src/pages/databases/collections/CreateFields.tsx

@@ -174,7 +174,10 @@ const CreateFields: FC<CreateFieldsProps> = ({
         break;
       case 'element':
         _options = ALL_OPTIONS.filter(
-          d => d.label !== 'Array' && d.label !== 'JSON'
+          d =>
+            d.label !== 'Array' &&
+            d.label !== 'JSON' &&
+            !d.label.includes('Vector')
         );
         break;
       default: