From ed4279d32188f4a37623f18fc89bd4310bb8013f Mon Sep 17 00:00:00 2001 From: swcho Date: Fri, 25 Jul 2025 18:31:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SearchModal=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EB=84=A4=EC=9D=B4=EC=85=98=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx b/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx index cd8b76af7..cc94a7251 100644 --- a/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx +++ b/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx @@ -167,6 +167,7 @@ const SearchModal: React.FC = ({ // 페이지 변경 시마다 데이터 fetch useEffect(() => { // showTable이 true일 때만 fetch (최초 렌더 방지) + setIsResetPage(false); if (showTable) fetchFilteredData(); }, [curPage]); @@ -488,7 +489,7 @@ const SearchModal: React.FC = ({ const handleSearch = () => { // setCurPage(1); // 페이지를 1로 초기화 // setDetailCurPage(1); // 페이지를 1로 초기화 - // setIsResetPage(true); // 페이지를 초기화 + // setIsResetPage(false); // 페이지를 초기화 // setIsResetDetailPage(true); // 디테일 페이지를 초기화 // setIsResetSelection(true); // 선택 초기화 // setIsResetDetailSelection(true); // 선택 초기화 @@ -701,7 +702,7 @@ const SearchModal: React.FC = ({ total={tableCount} cellClick={activeTab === 'report' ? handleReportCellClick : handleBasicCellClick} onPageChange={setCurPage} - resetPageNo={true} + resetPageNo={isResetPage} resetSelection={isResetSelection} />