Skip to content

Commit

Permalink
DataViews: Hide pagination if we have only one page (#56948)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored Dec 11, 2023
1 parent c0b18b0 commit 93349ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Pagination( {
)
}
</Text>
{ !! totalItems && (
{ !! totalItems && totalPages !== 1 && (
<HStack expanded={ false } spacing={ 3 }>
<HStack
justify="flex-start"
Expand Down

1 comment on commit 93349ff

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 93349ff.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7170094584
📝 Reported issues:

Please sign in to comment.