Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
fix: account for missing label object when label is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jun 24, 2018
1 parent bbdc0db commit eb1e76d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = class Support {
}

get supportLabelTouched() {
return this.context.payload.label.name === this.config.supportLabel;
const label = this.context.payload.label;
return label && label.name === this.config.supportLabel;
}

get issueOpen() {
Expand Down

0 comments on commit eb1e76d

Please sign in to comment.