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} />