diff --git a/app/components/SimpleEditor/notesEditor/NotesEditor.js b/app/components/SimpleEditor/notesEditor/NotesEditor.js index 9c1e69f477955d1fb94925cef287c7ebd213d368..209cca0a6d3ecfd46894e382bb3ce2cf7042c7bc 100644 --- a/app/components/SimpleEditor/notesEditor/NotesEditor.js +++ b/app/components/SimpleEditor/notesEditor/NotesEditor.js @@ -18,12 +18,6 @@ class NotesEditor extends ProseEditor { provider.on('noteSelected', this.scrollTo, this) } - getInitialState () { - return { - trackChangesView: this.props.trackChangesView - } - } - render ($$) { const el = $$('div').addClass('sc-notes-editor') let toolbar = this._renderNotesToolbar($$) @@ -130,9 +124,10 @@ class NotesEditor extends ProseEditor { return this.context.notesProvider } - getSurface () { - const containerId = this.props.containerId - return this.surfaceManager.getSurface(containerId) + getInitialState () { + return { + trackChangesView: this.props.trackChangesView + } } getChildContext () {