Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Nov 1, 2024
1 parent 4fab8e8 commit b2eba61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/app/mirrors/[mirrorId]/syncStatusTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const SyncStatusTable = ({ mirrorName }: SyncStatusTableProps) => {
};

fetchData();
}, [mirrorName, beforeId, afterId]);
}, [mirrorName, beforeId, afterId, ascending]);

const nextPage = useCallback(() => {
if (batches.length === 0) {
Expand All @@ -86,7 +86,7 @@ export const SyncStatusTable = ({ mirrorName }: SyncStatusTableProps) => {
} else {
setBeforeAfterId([batches[batches.length - 1].batchId, -1]);
}
}, [batches]);
}, [batches, ascending]);
const prevPage = useCallback(() => {
if (batches.length === 0 || currentPage < 3) {
setBeforeAfterId([-1, ascending ? 0 : -1]);
Expand All @@ -95,7 +95,7 @@ export const SyncStatusTable = ({ mirrorName }: SyncStatusTableProps) => {
} else {
setBeforeAfterId([-1, batches[0].batchId]);
}
}, [batches, currentPage]);
}, [batches, ascending, currentPage]);

return (
<Table
Expand Down

0 comments on commit b2eba61

Please sign in to comment.