We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e107cdb commit 3c2e877Copy full SHA for 3c2e877
src/components/ResizeableDataTable/ResizeableDataTable.tsx
@@ -70,7 +70,7 @@ export function ResizeableDataTable<T>({
70
const processedData = React.useMemo(() => {
71
if (isFetching && !data?.length) {
72
// We do not use data in render method when loading, so we can return an array of empty objects
73
- return Array(loadingSkeletonRowsCount).fill({}) as T[];
+ return Array.from({length: loadingSkeletonRowsCount}, () => ({}) as T);
74
}
75
return data;
76
}, [isFetching, data, loadingSkeletonRowsCount]);
0 commit comments