diff --git a/apps/sn/app/store/index.ts b/apps/sn/app/store/index.ts index e173c7509..40e094480 100644 --- a/apps/sn/app/store/index.ts +++ b/apps/sn/app/store/index.ts @@ -13,23 +13,20 @@ export type BIZ_CD_TYPE = { export const fetchCtpvSggData = async (set: (state: any) => void) => { try { - const ctpvData = await getCmsData('/api/v1/code/cache/ADSTDSTRCD'); - console.log("CTPV Data:", ctpvData); + const ctpvData = await getCmsData('/api/v1/code/cache/ADSTDSTRCD/Y'); const ctpvList: Option[] = ctpvData .filter((item: any) => typeof item.lwpoCd === 'string' && item.lwpoCd.length === 2) .map((feature: any) => ({ id: feature.lwpoCd, name: feature.lwpoCdNm - })) - .sort((a: Option, b: Option) => a.name.localeCompare(b.name, 'ko')); + })); const sggList: Option[] = ctpvData .filter((item: any) => typeof item.lwpoCd === 'string' && item.lwpoCd.length !== 2) .map((item: any) => ({ id: item.lwpoCd, name: item.lwpoCdNm - })) - .sort((a: Option, b: Option) => a.name.localeCompare(b.name, 'ko')); + })); set({ ctpv: ctpvList, sgg: sggList }); } catch (e: any) {