[ENG-763] Fix list view categories loop (#999)

Fix list view categories loop
This commit is contained in:
nikec authored and GitHub committed 2023-06-22 13:56:34 +00:00
1 parent 361c57064a
commit 10c7af5ae2
2 files changed
+2 -6

No files matched your search

@@ -240,7 +240,7 @@ export default () => {
});
const tableLength = table.getTotalSize();
const { rows } = table.getRowModel();
const rows = useMemo(() => table.getRowModel().rows, [explorerView.items]);
const rowVirtualizer = useVirtualizer({
count: explorerView.items ? rows.length : 100,
+1 -5
View File
@@ -40,11 +40,7 @@ export const Component = () => {
<TopBarPortal
right={
<TopBarOptions
options={[
explorerViewOptions.filter((f) => f.toolTipLabel !== 'List view'),
explorerToolOptions,
explorerControlOptions
]}
options={[explorerViewOptions, explorerToolOptions, explorerControlOptions]}
/>
}
/>