st: fix: db 표준화 작업에 맞게 interface 및 type 수정, middleware 수정

This commit is contained in:
2026-03-05 10:10:56 +09:00
parent ff5b43e1d2
commit 63afdfc726
19 changed files with 197 additions and 175 deletions
+2 -2
View File
@@ -67,9 +67,9 @@ const SearchForm = (props: SearchFormProps = {}) => {
bsnmCd: props.defaultValues?.bsnmCd || '',
});
// isStatusMenu면 bsnmCd가 doList에 있을 때만 시군구 조회. 선택 후 옵션 유지를 위해 마지막 목록 ref 사용
const sggKey: [string, string] | null =
values.sido && values.sido !== "ALL" && (!mergedProps.isStatusMenu || doList.includes(values.bsnmCd ?? ""))
// values.sido && values.sido !== "ALL" && doList.includes(values.bsnmCd ?? "")
values.sido && values.sido !== "ALL"
? ["sgg-list", values.sido]
: null;
const { data: sggList } = useSWR<ApiResponse<Sgg[]>>(