From f50de743e34f24630f6359468e9fac4ae0fe8b9d Mon Sep 17 00:00:00 2001 From: rsone001 Date: Tue, 30 Jun 2026 14:56:52 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20-=20feat=20=ED=86=B5=EA=B3=84=EC=9D=B8?= =?UTF-8?q?=EA=B5=AC=EA=B4=80=EB=A6=AC=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/st/src/components/module/SearchForm.tsx | 4 ++-- .../statistics/management/DomesticPopulationTab.tsx | 4 ++-- .../components/statistics/management/ForeignPopulationTab.tsx | 4 ++-- apps/st/src/components/statistics/management/LogHistory.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/st/src/components/module/SearchForm.tsx b/apps/st/src/components/module/SearchForm.tsx index 0b816a231..08b6e2b50 100644 --- a/apps/st/src/components/module/SearchForm.tsx +++ b/apps/st/src/components/module/SearchForm.tsx @@ -184,7 +184,7 @@ const SearchForm = (props: SearchFormProps = {}) => { const handleSidoChange = (value: string) => { const selectedBsnm = - sidoList?.data.sidoList.find((v) => v.sido === value)?.bsnmCd || ""; + sidoList?.data?.sidoList?.find((v) => v.sido === value)?.bsnmCd || ""; setValues((prev) => ({ ...prev, sido: value, @@ -197,7 +197,7 @@ const SearchForm = (props: SearchFormProps = {}) => { const listForBsnm = sggList?.data ?? []; const selectedBsnm = value === "ALL" - ? sidoList?.data.sidoList.find((v) => v.sido === values.sido) + ? sidoList?.data?.sidoList?.find((v) => v.sido === values.sido) ?.bsnmCd || "" : listForBsnm.find((v) => v.gugun === value)?.bsnmCd || ""; diff --git a/apps/st/src/components/statistics/management/DomesticPopulationTab.tsx b/apps/st/src/components/statistics/management/DomesticPopulationTab.tsx index e04bff56d..56b3ead4e 100644 --- a/apps/st/src/components/statistics/management/DomesticPopulationTab.tsx +++ b/apps/st/src/components/statistics/management/DomesticPopulationTab.tsx @@ -46,10 +46,10 @@ const DomesticPopulationTab = ({ tab, statsYr, onFileButtonClick }: Props) => {
diff --git a/apps/st/src/components/statistics/management/ForeignPopulationTab.tsx b/apps/st/src/components/statistics/management/ForeignPopulationTab.tsx index adbab7ed7..f469dbf95 100644 --- a/apps/st/src/components/statistics/management/ForeignPopulationTab.tsx +++ b/apps/st/src/components/statistics/management/ForeignPopulationTab.tsx @@ -43,10 +43,10 @@ const ForeignPopulationTab = ({ tab, statsYr, onFileButtonClick }: Props) => {
diff --git a/apps/st/src/components/statistics/management/LogHistory.tsx b/apps/st/src/components/statistics/management/LogHistory.tsx index 6258f5e63..86c6712d1 100644 --- a/apps/st/src/components/statistics/management/LogHistory.tsx +++ b/apps/st/src/components/statistics/management/LogHistory.tsx @@ -119,7 +119,7 @@ const LogHistory = () => { const handleSidoChange = (value: string) => { const selectedBsnm = - sidoList?.data.sidoList.find((v) => v.sido === value)?.bsnmCd ?? ""; + sidoList?.data?.sidoList.find((v) => v.sido === value)?.bsnmCd ?? ""; setSido(value); setGugun("ALL"); setBsnmCd(selectedBsnm); @@ -129,7 +129,7 @@ const LogHistory = () => { const listForBsnm = sggList?.data ?? []; const selectedBsnm = value === "ALL" - ? (sidoList?.data.sidoList.find((v) => v.sido === sido) + ? (sidoList?.data?.sidoList.find((v) => v.sido === sido) ?.bsnmCd ?? "") : (listForBsnm.find((v) => v.gugun === value)?.bsnmCd ?? ""); setGugun(value);