From 92e7a2e6cae4a1fcd78a97d4cc05de3c9a6e1443 Mon Sep 17 00:00:00 2001 From: BearerOP Date: Mon, 26 Aug 2024 00:06:39 +0530 Subject: [PATCH] Reset filter immediate effect on job results --- src/layouts/job-filters.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;