From b2eba61977daba8d8db165aa44848ce72188bac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Fri, 1 Nov 2024 00:49:46 +0000 Subject: [PATCH] lint --- ui/app/mirrors/[mirrorId]/syncStatusTable.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/mirrors/[mirrorId]/syncStatusTable.tsx b/ui/app/mirrors/[mirrorId]/syncStatusTable.tsx index 9b8b86ff1..6f59c9a13 100644 --- a/ui/app/mirrors/[mirrorId]/syncStatusTable.tsx +++ b/ui/app/mirrors/[mirrorId]/syncStatusTable.tsx @@ -76,7 +76,7 @@ export const SyncStatusTable = ({ mirrorName }: SyncStatusTableProps) => { }; fetchData(); - }, [mirrorName, beforeId, afterId]); + }, [mirrorName, beforeId, afterId, ascending]); const nextPage = useCallback(() => { if (batches.length === 0) { @@ -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]); @@ -95,7 +95,7 @@ export const SyncStatusTable = ({ mirrorName }: SyncStatusTableProps) => { } else { setBeforeAfterId([-1, batches[0].batchId]); } - }, [batches, currentPage]); + }, [batches, ascending, currentPage]); return (