디버깅용 콘솔 로그 삭제
This commit is contained in:
@@ -56,9 +56,6 @@ export function CtpvSggPrcsFcltSelectBox({
|
||||
}
|
||||
if (setSwtrmtFcltNm) setSwtrmtFcltNm("");
|
||||
})();
|
||||
|
||||
console.log("ctpv", ctpv);
|
||||
console.log("sgg", sgg);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -18,7 +18,7 @@ export const fetchCtpv = async (set: (state: any) => void) => {
|
||||
text: f.properties.mctpv_korn_nm,
|
||||
val: f.properties.mctpv_cd,
|
||||
}))
|
||||
.sort((a, b) => {
|
||||
.sort((a:any, b:any) => {
|
||||
// 커스텀 순서 정의
|
||||
const customOrder = [
|
||||
"서울특별시",
|
||||
@@ -69,9 +69,8 @@ export const fetchSgg = async (set: (state: any) => void) => {
|
||||
text: f.properties.sgg_korn_nm,
|
||||
val: f.properties.sgg_cd,
|
||||
}))
|
||||
.sort((a, b) => a.text.localeCompare(b.text, 'ko'));
|
||||
.sort((a:any, b:any) => a.text.localeCompare(b.text, 'ko'));
|
||||
|
||||
console.log('시군구 데이터', list);
|
||||
set({ sgg: list });
|
||||
};
|
||||
|
||||
|
||||
@@ -128,7 +128,6 @@ export function SearchBar({ gisMaps, ctpvCode, sggCode }: CtpvSggPrcsFcltSelectB
|
||||
val: f.properties.sgg_cd,
|
||||
}));
|
||||
|
||||
console.log('시군구 데이터', list);
|
||||
setSgg(list);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user