Web: Components: fixed grid loaders

This commit is contained in:
Nikita Gopienko 2022-08-12 17:52:21 +03:00
parent 5fcb32c16e
commit 160bc3a1a7

View File

@ -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]
); );