diff options
author | bob <bcz@cs.brown.edu> | 2019-10-11 10:15:53 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-11 10:15:53 -0400 |
commit | a5ff7c97d911ee03107b471ec882d5f8aa669f46 (patch) | |
tree | 7d81faba25f03892c2e74347bfd6c73e3d12b674 /src/client/views/nodes/FormattedTextBoxComment.tsx | |
parent | a73a72586c72cd620c16dd7bc0baad88c8e49a34 (diff) | |
parent | e6be0feda60963d28838d9fe7c79bf40cde6bc62 (diff) |
Merge branch 'master' into searchsidebar
Diffstat (limited to 'src/client/views/nodes/FormattedTextBoxComment.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBoxComment.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBoxComment.tsx b/src/client/views/nodes/FormattedTextBoxComment.tsx index a75bfd373..bde278be3 100644 --- a/src/client/views/nodes/FormattedTextBoxComment.tsx +++ b/src/client/views/nodes/FormattedTextBoxComment.tsx @@ -93,7 +93,7 @@ export class FormattedTextBoxComment { if (lastState && lastState.doc.eq(state.doc) && lastState.selection.eq(state.selection)) return; - if (!FormattedTextBoxComment.textBox || !FormattedTextBoxComment.textBox.props.isSelected()) return; + if (!FormattedTextBoxComment.textBox || !FormattedTextBoxComment.textBox.props || !FormattedTextBoxComment.textBox.props.isSelected()) return; let set = "none"; if (FormattedTextBoxComment.textBox && state.selection.$from) { let nbef = findStartOfMark(state.selection.$from, view, findOtherUserMark); |