From b5ba7c39f6f6810f31ebdf8d4390569b271b4a75 Mon Sep 17 00:00:00 2001 From: Chris Warren <16132615+c-warren@users.noreply.github.com> Date: Wed, 10 Dec 2025 13:06:42 -0800 Subject: [PATCH 1/2] fix: Stop failover history from looping when reaching the end of results --- .../get-domain-failover-history-query-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts b/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts index 3428e782c..8181def9c 100644 --- a/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts +++ b/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts @@ -27,7 +27,7 @@ export default function getDomainFailoverHistoryQueryOptions( }) ).then((res) => res.json()), initialPageParam: undefined, - getNextPageParam: (res) => res.nextPageToken, + getNextPageParam: (res) => res.nextPageToken != "" ? res.nextPageToken : undefined, retry: false, }; } From bf3bd241bf71a5a89a7d4827291f649081c09c34 Mon Sep 17 00:00:00 2001 From: Chris Warren <16132615+c-warren@users.noreply.github.com> Date: Wed, 10 Dec 2025 13:22:38 -0800 Subject: [PATCH 2/2] get more typescripty for lint --- .../get-domain-failover-history-query-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts b/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts index 8181def9c..dbadd0641 100644 --- a/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts +++ b/src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts @@ -27,7 +27,7 @@ export default function getDomainFailoverHistoryQueryOptions( }) ).then((res) => res.json()), initialPageParam: undefined, - getNextPageParam: (res) => res.nextPageToken != "" ? res.nextPageToken : undefined, + getNextPageParam: (res) => res.nextPageToken || undefined, retry: false, }; }