fix: wrong hasNextPage value
This commit is contained in:
parent
76ef0059c7
commit
a270c82a5f
|
|
@ -39,7 +39,7 @@ export const prefetchGetPagesBySite = async (
|
|||
}),
|
||||
)
|
||||
},
|
||||
getNextPageParam: (lastPage) => lastPage.cursor,
|
||||
getNextPageParam: (lastPage) => lastPage.cursor || undefined,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue