Skip to content

Commit

Permalink
Merge branch 'main' into feat/group-form-field
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashsprem authored Nov 26, 2024
2 parents d12d46f + a6be257 commit 9e8aac6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/components/list/pagination/per-page-items-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ export default function PerPageItemsSelect() {
/** We remove the current page when changing per-page. */
prev.delete("page");

/** When its the defualt value, we dont add it to the params */
if (value === perPageValues[0]) {
prev.delete("per_page");
} else {
prev.set("per_page", value);
}
prev.set("per_page", value);

return prev;
});
Expand Down

0 comments on commit 9e8aac6

Please sign in to comment.