From cbbbefee28a648d64ee411983ec26a464e6af9b7 Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Tue, 10 Oct 2023 18:05:32 +0000 Subject: [PATCH] Fixes #36821 - Fix table pagination to be used separately --- .../react_app/components/PF4/TableIndexPage/Table/Table.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/Table.js b/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/Table.js index 30a31a199d5..527501f0421 100644 --- a/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/Table.js +++ b/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/Table.js @@ -27,6 +27,7 @@ export const Table = ({ setParams, url, isPending, + isEmbedded, }) => { const columnsToSortParams = {}; Object.keys(columns).forEach(key => { @@ -140,6 +141,7 @@ export const Table = ({ perPage={params.perPage} itemCount={itemCount} onChange={onPagination} + updateParamsByUrl={!isEmbedded} /> )} @@ -162,6 +164,7 @@ Table.propTypes = { setParams: PropTypes.func.isRequired, url: PropTypes.string.isRequired, isPending: PropTypes.bool.isRequired, + isEmbedded: PropTypes.bool, }; Table.defaultProps = { @@ -170,4 +173,5 @@ Table.defaultProps = { itemCount: 0, getActions: null, results: [], + isEmbedded: false, };