Skip to content

Commit 9af388c

Browse files
fix: Disable refresh while pagination is in flight
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 13af994 commit 9af388c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

apps/ui/src/components/activity/recent-logs.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -562,18 +562,18 @@ export function RecentLogs({
562562
className="w-[200px]"
563563
/>
564564

565-
<Button
566-
type="button"
567-
variant="outline"
568-
onClick={() => void refetch()}
569-
disabled={isLoading || isRefetching}
570-
className="gap-2"
571-
>
572-
<RefreshCw
573-
className={cn("h-4 w-4", isRefetching && "animate-spin")}
574-
/>
575-
{isRefetching ? "Refreshing..." : "Refresh"}
576-
</Button>
565+
<Button
566+
type="button"
567+
variant="outline"
568+
onClick={() => void refetch()}
569+
disabled={isLoading || isRefetching || isFetchingNextPage}
570+
className="gap-2"
571+
>
572+
<RefreshCw
573+
className={cn("h-4 w-4", isRefetching && "animate-spin")}
574+
/>
575+
{isRefetching ? "Refreshing..." : "Refresh"}
576+
</Button>
577577
</div>
578578

579579
{isLoading ? (

0 commit comments

Comments
 (0)