Skip to content

Commit 93deba0

Browse files
committed
hasMorePages can be null
1 parent 9acf753 commit 93deba0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/github/pullRequestManager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const queries = require('./queries.gql');
2323

2424
interface PageInformation {
2525
pullRequestPage: number;
26-
hasMorePages: boolean;
26+
hasMorePages: boolean | null;
2727
}
2828

2929
interface RestErrorResult {
@@ -211,7 +211,7 @@ export class PullRequestManager {
211211
if (!this._repositoryPageInformation.get(remoteId)) {
212212
this._repositoryPageInformation.set(remoteId, {
213213
pullRequestPage: 1,
214-
hasMorePages: false
214+
hasMorePages: null
215215
});
216216
}
217217
}
@@ -315,14 +315,14 @@ export class PullRequestManager {
315315
for (let repository of this._githubRepositories) {
316316
this._repositoryPageInformation.set(repository.remote.url.toString(), {
317317
pullRequestPage: 1,
318-
hasMorePages: false
318+
hasMorePages: null
319319
});
320320
}
321321
}
322322

323323
githubRepositories = githubRepositories.filter(repo => {
324324
let info = this._repositoryPageInformation.get(repo.remote.url.toString());
325-
return info && info.hasMorePages;
325+
return info && info.hasMorePages !== false;
326326
});
327327

328328
let pullRequests: PullRequestModel[] = [];
@@ -361,7 +361,7 @@ export class PullRequestManager {
361361
public mayHaveMorePages(): boolean {
362362
return this._githubRepositories.some(repo => {
363363
let info = this._repositoryPageInformation.get(repo.remote.url.toString());
364-
return !!(info && info.hasMorePages);
364+
return !!(info && info.hasMorePages !== false);
365365
});
366366
}
367367

0 commit comments

Comments
 (0)