Fix/infinite booking list (#2931)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
parent
7c34be272f
commit
9ded50b5fc
|
@ -466,10 +466,8 @@ const loggedInViewerRouter = createProtectedRouter()
|
|||
}
|
||||
|
||||
let nextCursor: typeof skip | null = skip;
|
||||
|
||||
if (bookingsFetched > take) {
|
||||
bookings.shift();
|
||||
nextCursor += bookings.length;
|
||||
nextCursor += bookingsFetched;
|
||||
} else {
|
||||
nextCursor = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user