Skip to content

Commit

Permalink
Fixes #37770 - hosts bottom pagination doesnt work
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Sep 2, 2024
1 parent e80d555 commit c87d104
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const Table = ({
children,
bottomPagination,
}) => {
const onPagination = newPagination => {
setParams({ ...params, ...newPagination });
};
if (!bottomPagination)
bottomPagination = (
<Pagination
Expand All @@ -62,9 +65,6 @@ export const Table = ({
order: `${Object.keys(columns)[index]} ${direction}`,
});
};
const onPagination = newPagination => {
setParams({ ...params, ...newPagination });
};
const { pfSortParams } = useTableSort({
allColumns: Object.keys(columns).map(k => columns[k].title),
columnsToSortParams,
Expand Down

0 comments on commit c87d104

Please sign in to comment.