Skip to content

Commit

Permalink
set page to 1 when filtering by term
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Sep 6, 2022
1 parent 464ce9c commit 86f263d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/Organizations/OrganizationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const OrganizationList = () => {

const handleInputKeyup = (event) => {
if (event.code === 'Enter') {
setFilter({term: event.target.value });
setFilter({page: 1, term: event.target.value});
fetchItems();
}
};
Expand Down

0 comments on commit 86f263d

Please sign in to comment.