diff --git a/src/layouts/job-filters.tsx b/src/layouts/job-filters.tsx index a83d9d4e..47857221 100644 --- a/src/layouts/job-filters.tsx +++ b/src/layouts/job-filters.tsx @@ -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 ( @@ -267,4 +268,4 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => { ); }; -export default JobFilters; \ No newline at end of file +export default JobFilters;