mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 06:43:29 +00:00
[ENG-763] Fix list view categories loop (#999)
Fix list view categories loop
This commit is contained in:
parent
361c57064a
commit
10c7af5ae2
|
@ -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,
|
||||
|
|
|
@ -40,11 +40,7 @@ export const Component = () => {
|
|||
<TopBarPortal
|
||||
right={
|
||||
<TopBarOptions
|
||||
options={[
|
||||
explorerViewOptions.filter((f) => f.toolTipLabel !== 'List view'),
|
||||
explorerToolOptions,
|
||||
explorerControlOptions
|
||||
]}
|
||||
options={[explorerViewOptions, explorerToolOptions, explorerControlOptions]}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue