Skip to content

Commit b5ba7c3

Browse files
committed
fix: Stop failover history from looping when reaching the end of results
1 parent d61bc2a commit b5ba7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/domain-page/hooks/use-domain-failover-history/get-domain-failover-history-query-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function getDomainFailoverHistoryQueryOptions(
2727
})
2828
).then((res) => res.json()),
2929
initialPageParam: undefined,
30-
getNextPageParam: (res) => res.nextPageToken,
30+
getNextPageParam: (res) => res.nextPageToken != "" ? res.nextPageToken : undefined,
3131
retry: false,
3232
};
3333
}

0 commit comments

Comments
 (0)