From 636f5fc1a1e9aea45b15a83c823a09ee3c65fd19 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 (cherry picked from commit da504c8a2599b325853066b5099493e0c8b3c5f1) --- .../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,