Skip to content

Commit 3c2e877

Browse files
copilot fix
1 parent e107cdb commit 3c2e877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ResizeableDataTable/ResizeableDataTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function ResizeableDataTable<T>({
7070
const processedData = React.useMemo(() => {
7171
if (isFetching && !data?.length) {
7272
// 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[];
73+
return Array.from({length: loadingSkeletonRowsCount}, () => ({}) as T);
7474
}
7575
return data;
7676
}, [isFetching, data, loadingSkeletonRowsCount]);

0 commit comments

Comments
 (0)