From da504c8a2599b325853066b5099493e0c8b3c5f1 Mon Sep 17 00:00:00 2001 From: MariaAga Date: Mon, 2 Sep 2024 14:35:36 +0100 Subject: [PATCH] Fixes #37770 - hosts bottom pagination doesnt work --- .../react_app/components/PF4/TableIndexPage/Table/Table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 da311e02960..b68ce8240ea 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 @@ -38,6 +38,9 @@ export const Table = ({ children, bottomPagination, }) => { + const onPagination = newPagination => { + setParams({ ...params, ...newPagination }); + }; if (!bottomPagination) bottomPagination = ( { - setParams({ ...params, ...newPagination }); - }; const { pfSortParams } = useTableSort({ allColumns: Object.keys(columns).map(k => columns[k].title), columnsToSortParams,