Skip to content

Commit

Permalink
Don't access undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
  • Loading branch information
yardenshoham committed Apr 22, 2024
1 parent 6602158 commit e143758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const removeLabelsFromMergedPr = (labels: string[]) => {
return Promise.all(labels.map(async (label) => {
const prsThatAreMergedAndHaveTheLabel = await fetchMergedWithLabel(label);
return Promise.all(
prsThatAreMergedAndHaveTheLabel.items.map(
prsThatAreMergedAndHaveTheLabel?.items?.map(
(pr: { title: string; number: number }) =>
removeLabelFromMergedPr(pr, label),
),
Expand Down

0 comments on commit e143758

Please sign in to comment.