Fix #26 - 'Element with id XX is already registered'
Change init page number
This commit is contained in:
parent
4ddea5b9ff
commit
e51f15dbea
@ -26,7 +26,7 @@ export class IssueProvider implements vscode.TreeDataProvider<Issue> {
|
|||||||
const giteaConnector = new GiteaConnector(config.token, config.sslVerify);
|
const giteaConnector = new GiteaConnector(config.token, config.sslVerify);
|
||||||
|
|
||||||
const issues = [];
|
const issues = [];
|
||||||
let page = 0;
|
let page = 1;
|
||||||
while (page < 11) {
|
while (page < 11) {
|
||||||
const issuesOfPage = (await giteaConnector.getIssues(config.repoApiUrl, this.state, page)).data;
|
const issuesOfPage = (await giteaConnector.getIssues(config.repoApiUrl, this.state, page)).data;
|
||||||
issues.push(...issuesOfPage);
|
issues.push(...issuesOfPage);
|
||||||
|
Loading…
Reference in New Issue
Block a user