diff --git a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/SnippetNoteDetail.js index ca20d6e5..6b18a5a0 100644 --- a/browser/main/Detail/SnippetNoteDetail.js +++ b/browser/main/Detail/SnippetNoteDetail.js @@ -252,7 +252,8 @@ class SnippetNoteDetail extends React.Component { const note = Object.assign({}, this.state.note, {snippets}) this.setState({ note, snippetIndex }, () => { this.save() - this.refs['code-' + this.state.snippetIndex].reload() + this.refs['code-' + index].reload() + this.refs['code-' + oldIndex].reload() }) }