From e490487b61624f015bf1bbb79cc933a515acd9ac Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Wed, 5 Oct 2022 16:49:59 +0200 Subject: [PATCH] fix(project): fix missing shelves and cards --- src/components/CardGrid/CardGrid.tsx | 2 +- src/containers/ShelfList/ShelfList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CardGrid/CardGrid.tsx b/src/components/CardGrid/CardGrid.tsx index 8e7bd834a..1a4bc3c7e 100644 --- a/src/components/CardGrid/CardGrid.tsx +++ b/src/components/CardGrid/CardGrid.tsx @@ -94,7 +94,7 @@ function CardGrid({ setRowCount((current) => current + LOAD_ROWS_COUNT)} - hasMore={rowCount * LOAD_ROWS_COUNT < playlist.playlist.length - 1} + hasMore={rowCount * visibleTiles < playlist.playlist.length} loader={} >
diff --git a/src/containers/ShelfList/ShelfList.tsx b/src/containers/ShelfList/ShelfList.tsx index de597b104..c0265a67a 100644 --- a/src/containers/ShelfList/ShelfList.tsx +++ b/src/containers/ShelfList/ShelfList.tsx @@ -64,7 +64,7 @@ const ShelfList = ({ rows }: Props) => { pageStart={0} style={{ overflow: 'hidden' }} loadMore={() => setRowCount((current) => current + LOAD_ROWS_COUNT)} - hasMore={rowCount < rows.length - 1} + hasMore={rowCount < rows.length} role="grid" loader={} >