diff --git a/src/components/common/SearchDropDown.tsx b/src/components/common/SearchDropDown.tsx index 4369c84..5123ba2 100644 --- a/src/components/common/SearchDropDown.tsx +++ b/src/components/common/SearchDropDown.tsx @@ -28,12 +28,20 @@ function SearchDropDown({ title }: PropsType) { winter_intern: "", }); + const isTechCode = !!getQueryString("tech_code"); + return (
-

{title}

+

+ {title} +

{ setQueryString({ + ...filter, page: "1", - job_code: filter.job_code, - tech_code: filter.tech_code, name: searchState.search, - winter_intern: filter.winter_intern, }); }; @@ -53,7 +51,7 @@ function Filter() { } else setFilter((prev) => ({ ...prev, [jobType]: itemCode })); }; - const { data:codes } = useGetCode("JOB"); + const { data: codes } = useGetCode("JOB"); const jobCodeDropdownItems = codes?.codes.map((item) => ({ code: item.code.toString(),