Skip to content

Commit 8ebcf41

Browse files
fix: updated field name for capturing next page token in tkr
1 parent f6b07dd commit 8ebcf41

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/hooks/useTektonResults.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ const useTRRuns = <Kind extends K8sResourceCommon>(
5757
isDevConsoleProxyAvailable,
5858
);
5959
if (!disposed) {
60-
const token = tkPipelineRuns[1].nextPageToken;
60+
const token =
61+
tkPipelineRuns[1].nextPageToken ||
62+
tkPipelineRuns[1].next_page_token;
6163
const callInflight = !!tkPipelineRuns?.[2];
6264
const loaded = !callInflight;
6365
if (!callInflight) {

src/types/resultsSummary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type Log = {
3737

3838
export type RecordsList = {
3939
nextPageToken?: string;
40+
next_page_token?: string;
4041
records: ResultRecord[];
4142
};
4243

0 commit comments

Comments
 (0)