diff --git a/ui/src/app/shared/components/pagination-panel.tsx b/ui/src/app/shared/components/pagination-panel.tsx index 0f101f42f426..8c21a92cf21d 100644 --- a/ui/src/app/shared/components/pagination-panel.tsx +++ b/ui/src/app/shared/components/pagination-panel.tsx @@ -19,7 +19,8 @@ export function PaginationPanel(props: {pagination: Pagination; onChange: (pagin }> Next page - {props.pagination.limit > 0 ? ( + {/* if pagination is used, and we're either not on the first page, or are on the first page and have more records than the page limit */} + {props.pagination.limit > 0 && (props.pagination.offset || (!props.pagination.offset && props.numRecords >= props.pagination.limit)) ? ( <> Workflows cannot be globally sorted when paginated