fix: wrong hasNextPage value
This commit is contained in:
@@ -39,7 +39,7 @@ export const prefetchGetPagesBySite = async (
|
||||
}),
|
||||
)
|
||||
},
|
||||
getNextPageParam: (lastPage) => lastPage.cursor,
|
||||
getNextPageParam: (lastPage) => lastPage.cursor || undefined,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user