Skip to content

Commit

Permalink
Prevent undefined rte
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Dec 20, 2017
1 parent d6ffecf commit 8539f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rich_text_editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ module.exports = () => {
if (customRte) {
customRte.disable(el, rte);
} else {
rte.disable();
rte && rte.disable();
}

hideToolbar();
Expand Down

0 comments on commit 8539f28

Please sign in to comment.