fix: wrong hasNextPage value

This commit is contained in:
DIYgod 2023-01-31 23:19:23 +00:00
parent 76ef0059c7
commit a270c82a5f
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ export const prefetchGetPagesBySite = async (
}),
)
},
getNextPageParam: (lastPage) => lastPage.cursor,
getNextPageParam: (lastPage) => lastPage.cursor || undefined,
})
}

View File

@ -34,7 +34,7 @@ export const useGetPagesBySiteLite = (
).json()
return result
},
getNextPageParam: (lastPage) => lastPage.cursor,
getNextPageParam: (lastPage) => lastPage.cursor || undefined,
})
}
@ -53,7 +53,7 @@ export const useGetPagesBySite = (
unidata,
)
},
getNextPageParam: (lastPage) => lastPage.cursor,
getNextPageParam: (lastPage) => lastPage.cursor || undefined,
})
}