sync: canary changes to preview

This commit is contained in:
sriramveeraghanta 2025-07-01 17:42:13 +05:30
commit d3f1b511ad
2 changed files with 4 additions and 2 deletions

View file

@ -150,6 +150,8 @@ class OffsetPaginator:
raise BadPaginationError("Pagination offset cannot be negative")
results = queryset[offset:stop]
# Duplicate the queryset so it does not evaluate on any python ops
page_results = queryset[offset:stop].values("id")
# Only slice from the end if we're going backwards (previous page)
if cursor.value != limit and cursor.is_prev:
@ -164,7 +166,7 @@ class OffsetPaginator:
# Check if there are more results available after the current page
# Adjust cursors based on the results for pagination
next_cursor = Cursor(limit, page + 1, False, len(results) > limit)
next_cursor = Cursor(limit, page + 1, False, page_results.count() > limit)
# If the page is greater than 0, then set the previous cursor
prev_cursor = Cursor(limit, page - 1, True, page > 0)

View file

@ -36,7 +36,7 @@ export const ProjectInboxHeader: FC = observer(() => {
return (
<Header>
<Header.LeftItem>
<div className="flex items-center gap-4 flex-grow border">
<div className="flex items-center gap-4 flex-grow">
<Breadcrumbs isLoading={currentProjectDetailsLoader === "init-loader"}>
<CommonProjectBreadcrumbs
workspaceSlug={workspaceSlug?.toString() ?? ""}