Skip to content

Commit

Permalink
fix(TableVirtualizedBody): handle empty state when no items or items …
Browse files Browse the repository at this point in the history
…is an empty array (#1934)
  • Loading branch information
YossiSaadi authored Feb 7, 2024
1 parent ac91924 commit 24d5baa
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ const TableVirtualizedBody: FC<ITableVirtualizedBodyProps> = ({ items, rowRender

return (
<TableBody className={styles.tableBody}>
<VirtualizedList
items={items}
itemRenderer={itemRenderer}
getItemHeight={() => RowHeights[size]}
layout="vertical"
onScroll={onScroll}
/>
{items?.length && (
<VirtualizedList
items={items}
itemRenderer={itemRenderer}
getItemHeight={() => RowHeights[size]}
layout="vertical"
onScroll={onScroll}
/>
)}
</TableBody>
);
};
Expand Down

0 comments on commit 24d5baa

Please sign in to comment.