diff --git a/packages/lib/src/spatial-navigation/components/virtualizedList/helpers/getNumberOfItemsVisibleOnScreen.ts b/packages/lib/src/spatial-navigation/components/virtualizedList/helpers/getNumberOfItemsVisibleOnScreen.ts index bfb2ca0d..af3f4c87 100644 --- a/packages/lib/src/spatial-navigation/components/virtualizedList/helpers/getNumberOfItemsVisibleOnScreen.ts +++ b/packages/lib/src/spatial-navigation/components/virtualizedList/helpers/getNumberOfItemsVisibleOnScreen.ts @@ -1,8 +1,4 @@ const getMinSizeOfItems = (data: T[], itemSize: number | ((item: T) => number)) => { - if (data.length === 0) { - throw new Error('The data array is empty.'); - } - if (typeof itemSize === 'number') { return itemSize; }