Skip to content

Commit

Permalink
Fixed confusing optional properties
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Sep 12, 2024
1 parent 8277374 commit 4f69f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/collector/src/getProjectIssues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function getProjectIssues(
});
return issues.data.map((issue) => ({
description: issue.body ?? "",
link: publicRepo ? issue.html_url : undefined,
...(publicRepo && { link: issue.html_url }),
number: issue.number,
title: issue.title,
}));
Expand Down

0 comments on commit 4f69f4d

Please sign in to comment.