diff --git a/ui/app/mirrors/edit/[mirrorId]/syncStatusTable.tsx b/ui/app/mirrors/edit/[mirrorId]/syncStatusTable.tsx index 9b6ff1bb5b..6c966d08e7 100644 --- a/ui/app/mirrors/edit/[mirrorId]/syncStatusTable.tsx +++ b/ui/app/mirrors/edit/[mirrorId]/syncStatusTable.tsx @@ -64,7 +64,7 @@ export const SyncStatusTable = ({ rows }: SyncStatusTableProps) => { const startRow = (currentPage - 1) * ROWS_PER_PAGE; const endRow = startRow + ROWS_PER_PAGE; const allRows = rows.slice(startRow, endRow); - const [displayedRows, setDisplayedRows] = useState( + const [displayedRows, setDisplayedRows] = useState(() => rows.slice(startRow, endRow) ); const handlePrevPage = () => {