From b64fe14de55b474f052b6e8fff8c171fec4bf968 Mon Sep 17 00:00:00 2001 From: phoebus-84 <83974413+phoebus-84@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:18:56 +0100 Subject: [PATCH] fix: missing projects in home (#786) fix: #784 Co-authored-by: Puria Nafisi Azizi --- hooks/useLoadMore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/useLoadMore.ts b/hooks/useLoadMore.ts index c16938de..5e7289e0 100644 --- a/hooks/useLoadMore.ts +++ b/hooks/useLoadMore.ts @@ -59,7 +59,7 @@ const useLoadMore = ({ // Poll interval that works with pagination useEffect(() => { const intervalId = setInterval(() => { - const total = data?.[dataQueryIdentifier].edges.length || 0; + const total = data?.[dataQueryIdentifier].edges.length || variables.last; refetch({ ...variables, last: total,