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

Fix list view categories loop
This commit is contained in:
nikec 2023-06-22 09:56:34 -04:00 committed by GitHub
parent 361c57064a
commit 10c7af5ae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -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,

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]}
/>
}
/>