Skip to content

Commit

Permalink
fix: missing projects in home (#786)
Browse files Browse the repository at this point in the history
fix: #784

Co-authored-by: Puria Nafisi Azizi <puria@dyne.org>
  • Loading branch information
phoebus-84 and puria authored Jan 29, 2025
1 parent 108f652 commit b64fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useLoadMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b64fe14

Please sign in to comment.