Commit cf827a5
authored
fix: Stop failover history from looping when reaching the end of results (#1113)
When fetching failover history and reaching the end of results (a response of nextPageToken: "") the page would attempt to load the next page of results. An empty token/undefined token is assumed to be the first page by the server, which resulted in an infinite loop of results.
This update ensures that the nextPageToken is only populated if it is a non-empty string.1 parent 25c8e63 commit cf827a5
File tree
1 file changed
+1
-1
lines changed- src/views/domain-page/hooks/use-domain-failover-history
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
0 commit comments