Skip to content

Commit 21a6359

Browse files
Fixes jira cached projects containing duplicates
1 parent dc971d6 commit 21a6359

File tree

1 file changed

+1
-1
lines changed
  • src/plus/integrations/providers

1 file changed

+1
-1
lines changed

src/plus/integrations/providers/jira.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class JiraIntegration extends IssueIntegration<IssueIntegrationId.Jira> {
332332
const projects = this._projects.get(projectKey);
333333
if (projects == null) {
334334
this._projects.set(projectKey, [project]);
335-
} else {
335+
} else if (!projects.some(p => p.id === project.id)) {
336336
projects.push(project);
337337
}
338338
}

0 commit comments

Comments
 (0)