1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-11 17:10:30 +00:00

fix minor build error

This commit is contained in:
Leo Lam
2017-04-21 23:40:52 -04:00
parent 50fc15feea
commit ffef239aa7
+2 -1
View File
@@ -175,8 +175,9 @@ class MarkdownEditor extends React.Component {
}
addMdAroundWord (mdElement) {
if (this.refs.code.editor.getSelection())
if (this.refs.code.editor.getSelection()) {
return this.addMdAroundSelection(mdElement)
}
const currentCaret = this.refs.code.editor.getCursor()
const word = this.refs.code.editor.findWordAt(currentCaret)
const cmDoc = this.refs.code.editor.getDoc()