From e51f15dbeae4762c6f2687b04a64c03ee3af653c Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Mon, 8 Aug 2022 15:16:12 +0200 Subject: [PATCH] Fix #26 - 'Element with id XX is already registered' Change init page number --- src/issueProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/issueProvider.ts b/src/issueProvider.ts index e92a4b3..92a6d2e 100644 --- a/src/issueProvider.ts +++ b/src/issueProvider.ts @@ -26,7 +26,7 @@ export class IssueProvider implements vscode.TreeDataProvider { const giteaConnector = new GiteaConnector(config.token, config.sslVerify); const issues = []; - let page = 0; + let page = 1; while (page < 11) { const issuesOfPage = (await giteaConnector.getIssues(config.repoApiUrl, this.state, page)).data; issues.push(...issuesOfPage);