Skip to content

Commit

Permalink
Reset filter immediate effect on job results
Browse files Browse the repository at this point in the history
  • Loading branch information
BearerOP committed Aug 25, 2024
1 parent e6eaeda commit 92e7a2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/layouts/job-filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
});
}

// Reset all filters to default values
function handleResetFilters() {
form.reset({
workmode: [],
salaryrange: [],
location: [],
});

handleFormSubmit(form.getValues());
}

return (
Expand Down Expand Up @@ -267,4 +268,4 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
);
};

export default JobFilters;
export default JobFilters;

0 comments on commit 92e7a2e

Please sign in to comment.