Fix #26 - 'Element with id XX is already registered'

Change init page number
This commit is contained in:
Maxence G. de Montauzan 2022-08-08 15:16:12 +02:00
parent 4ddea5b9ff
commit e51f15dbea

View File

@ -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);