Signed-off-by: ryjiang <jiangruiyi@gmail.com>
@@ -211,7 +211,7 @@ const AttuGrid: FC<AttuGridType> = props => {
window.removeEventListener('resize', calculateRowCountAndPageSize);
clearTimeout(timer);
};
- }, [tableHeaderHeight, rowHeight, setRowsPerPage]);
+ }, [tableHeaderHeight, rowHeight]);
return (
<Grid
@@ -67,7 +67,6 @@ export const getVectorSearchStyles = makeStyles((theme: Theme) => ({
flexDirection: 'column',
flexGrow: 0,
width: `calc(100% - 396px)`,
- height: `calc(100vh - 108px)`,
padding: theme.spacing(1, 2),
},
toolbar: {
@@ -247,7 +247,9 @@ const VectorSearch = () => {
setSelectedField(defaultFieldValue as string);
}
- setFilterFields(col?.schema.scalarFields!);
+ if(col?.schema) {
+ setFilterFields(col?.schema.scalarFields!);
+ }
[collections]
);