Skip to content

Commit

Permalink
Merge pull request #3 from tolbertam/issue/2
Browse files Browse the repository at this point in the history
Return early if provided term is not defined
  • Loading branch information
tolbertam authored Dec 12, 2018
2 parents 38b709b + 22e94c5 commit 8ef08f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ exports.decorateTerm = (Term, { React, notify }) => {
}

onDecorated(term) {
if (!term) {
return;
}

if (this.props.onDecorated) {
this.props.onDecorated(term);
}
Expand Down

0 comments on commit 8ef08f1

Please sign in to comment.