Skip to content

Commit

Permalink
check for term reference before accessing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyg committed May 3, 2018
1 parent f93e6db commit 41e4224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ exports.decorateTerm = (Term, { React, notify }) => {

_onDecorated (term) {
if (this.props.onDecorated) this.props.onDecorated(term);
this._div = term.termRef;
this._div = term ? term.termRef : null;
this._initCanvas();
}

Expand Down

0 comments on commit 41e4224

Please sign in to comment.