Skip to content

Commit

Permalink
Fixes #37777 - Pagination broken on redhat repos page (Katello#11125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 authored Aug 31, 2024
1 parent a4f1baf commit f79911e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions webpack/components/pf3Table/components/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const Table = ({
<Pagination
itemCount={itemCount}
onChange={onPaginationChange}
updateParamsByUrl={false}
{...pagination}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports[`Table renders Table with pagination 1`] = `
onSetPage={null}
page={1}
perPage={20}
updateParamsByUrl={true}
updateParamsByUrl={false}
variant="bottom"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exports[`RedHatRepositories page should render 1`] = `
onSetPage={null}
page={1}
perPage={null}
updateParamsByUrl={true}
updateParamsByUrl={false}
variant="bottom"
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions webpack/scenes/RedHatRepositories/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const getSetsComponent = (repoSetsState, onPaginationChange) => {
<Pagination
itemCount={itemCount}
onChange={onPaginationChange}
updateParamsByUrl={false}
isCompact
{...pagination}
/>
Expand Down Expand Up @@ -67,6 +68,7 @@ export const getEnabledComponent = (enabledReposState, onPaginationChange) => {
isCompact
itemCount={itemCount}
onChange={onPaginationChange}
updateParamsByUrl={false}
{...pagination}
/>
</div>
Expand Down

0 comments on commit f79911e

Please sign in to comment.