diff --git a/.github/scripts/shared/project.ts b/.github/scripts/shared/project.ts index 5b8763af7c9..5dc672107d1 100644 --- a/.github/scripts/shared/project.ts +++ b/.github/scripts/shared/project.ts @@ -179,7 +179,9 @@ export async function retrieveGithubProjectIssueFieldValuesRecursively( ); const projectIssueFieldValuesResponseWithSameId: RawGithubProjectIssueFieldValues | undefined = - projectIssuesFieldValuesResponse.nodes.find((issue) => issue.content.id === issueId); + projectIssuesFieldValuesResponse.nodes.find( + (issue) => issue.content?.id === issueId + ); // 'issue.content' can be equal to null in edge case where the Github Project board includes private repo issues that can't be accessed by the access token we're using if (projectIssueFieldValuesResponseWithSameId) { const projectIssueFieldValues: GithubProjectIssueFieldValues = {