diff --git a/app/components/SimpleEditor/miniEditor/miniEditor.js b/app/components/SimpleEditor/miniEditor/miniEditor.js index fd81c1f3c570d2d602b2535fc7c6f3cdb533dbce..4dd3681ab22d93e6edbfa5a0fe0d1b339f30d521 100644 --- a/app/components/SimpleEditor/miniEditor/miniEditor.js +++ b/app/components/SimpleEditor/miniEditor/miniEditor.js @@ -156,7 +156,7 @@ class MiniEditor extends ProseEditor { // If isloated note has no content and you keep pressing backspace, // it gets deleted. Set selection to null to prevent that const selection = this.editorSession.getSelection() - if (selection.start.offset === 0 && selection.end.offset === 0) { + if (selection.start && selection.start.offset === 0 && selection.end.offset === 0) { this.editorSession.setSelection(null) }