Web: Components: fixed grid loaders
This commit is contained in:
parent
5fcb32c16e
commit
160bc3a1a7
@ -15,7 +15,7 @@ const GridComponent = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const isItemLoaded = useCallback(
|
const isItemLoaded = useCallback(
|
||||||
({ index }) => {
|
({ index }) => {
|
||||||
return !hasMoreFiles || index * countTilesInRow < filesLength;
|
return !hasMoreFiles || (index + 1) * countTilesInRow < filesLength;
|
||||||
},
|
},
|
||||||
[filesLength, hasMoreFiles, countTilesInRow]
|
[filesLength, hasMoreFiles, countTilesInRow]
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user