Merge pull request #42 from MaxenceG2M/master
Fix #26 - Element with id XX is already registered
This commit is contained in:
commit
934ad3aec0
@ -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);
|
||||||
@ -37,7 +37,7 @@ export class IssueProvider implements vscode.TreeDataProvider<Issue> {
|
|||||||
c.creator = c.user.login;
|
c.creator = c.user.login;
|
||||||
});
|
});
|
||||||
page++;
|
page++;
|
||||||
if (issues.length < 10) {
|
if (issuesOfPage.length < 10) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user