Fix/infinite booking list (#2931)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
alannnc
2022-06-01 09:33:14 +05:30
committed by GitHub
co-authored by kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 7c34be272f
commit 9ded50b5fc
+1 -3
View File
@@ -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;
}