Skip to content

Commit

Permalink
Merge pull request #123 from zilliztech/fix-preview
Browse files Browse the repository at this point in the history
Fix preview
  • Loading branch information
shanghaikid authored Nov 21, 2022
2 parents 81cb5b7 + d42751a commit 927ad1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/pages/preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ToolBarConfig } from '../../components/grid/Types';
import CustomToolBar from '../../components/grid/ToolBar';
import { DataTypeStringEnum } from '../collections/Types';
import { generateVector } from '../../utils/Common';
import { DataTypeEnum } from '../../pages/collections/Types';

import {
INDEX_CONFIG,
Expand Down Expand Up @@ -128,7 +129,7 @@ const Preview: FC<{
expr: '',
vectors,
output_fields: [primaryKey],
vector_type: Number(vectorField?._fieldId),
vector_type: DataTypeEnum[vectorField!._fieldType],
});

// compose random id list expression
Expand Down

0 comments on commit 927ad1b

Please sign in to comment.