Skip to content

Commit

Permalink
Fixes #36821 - Fix table pagination to be used separately
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Oct 10, 2023
1 parent 2f429d5 commit cbbbefe
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const Table = ({
setParams,
url,
isPending,
isEmbedded,
}) => {
const columnsToSortParams = {};
Object.keys(columns).forEach(key => {
Expand Down Expand Up @@ -140,6 +141,7 @@ export const Table = ({
perPage={params.perPage}
itemCount={itemCount}
onChange={onPagination}
updateParamsByUrl={!isEmbedded}
/>
)}
</>
Expand All @@ -162,6 +164,7 @@ Table.propTypes = {
setParams: PropTypes.func.isRequired,
url: PropTypes.string.isRequired,
isPending: PropTypes.bool.isRequired,
isEmbedded: PropTypes.bool,
};

Table.defaultProps = {
Expand All @@ -170,4 +173,5 @@ Table.defaultProps = {
itemCount: 0,
getActions: null,
results: [],
isEmbedded: false,
};

0 comments on commit cbbbefe

Please sign in to comment.