Skip to content

Commit

Permalink
fix: vector types are included in the element type options (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid authored Jul 19, 2024
1 parent 72d2c37 commit 8a2cd10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/pages/databases/collections/CreateFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8a2cd10

Please sign in to comment.