Fix infinite scroll length check
This commit is contained in:
parent
07575169af
commit
c0225fc282
@ -37,7 +37,7 @@ export default async function GridPage() {
|
||||
? <SiteGrid
|
||||
contentMain={<div className="space-y-0.5 sm:space-y-1">
|
||||
<PhotoGrid {...{ photos }} />
|
||||
{photosCount >= photos.length &&
|
||||
{photosCount > photos.length &&
|
||||
<InfinitePhotoScroll
|
||||
type='grid'
|
||||
initialOffset={INFINITE_SCROLL_INITIAL_GRID}
|
||||
|
||||
@ -39,7 +39,7 @@ export default async function HomePage() {
|
||||
photos.length > 0
|
||||
? <div className="space-y-1">
|
||||
<PhotosLarge {...{ photos }} />
|
||||
{photosCount >= photos.length &&
|
||||
{photosCount > photos.length &&
|
||||
<InfinitePhotoScroll
|
||||
type="full-frame"
|
||||
initialOffset={INFINITE_SCROLL_INITIAL_HOME}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user