Skip to content

Commit

Permalink
fix: Do not display pagination warning when there is no pagination (#…
Browse files Browse the repository at this point in the history
…5221)

Signed-off-by: Simon Behar <simbeh7@gmail.com>
  • Loading branch information
simster7 committed Feb 26, 2021
1 parent 0c226ca commit 6412bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/components/pagination-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class PaginationPanel extends React.Component<{pagination: Pagination; on
}>
Next page <i className='fa fa-chevron-right' />
</button>
{this.props.pagination.limit <= this.props.numRecords ? (
{this.props.pagination.limit > 0 && this.props.pagination.limit <= this.props.numRecords ? (
<>
<WarningIcon /> Workflows cannot be globally sorted when paginated
</>
Expand Down

0 comments on commit 6412bc6

Please sign in to comment.