1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

forgot to reload tab at oldindex

This commit is contained in:
Maurits Lourens
2017-12-04 19:24:31 +01:00
parent 1af2c83c63
commit d06d94449c

View File

@@ -252,7 +252,8 @@ class SnippetNoteDetail extends React.Component {
const note = Object.assign({}, this.state.note, {snippets}) const note = Object.assign({}, this.state.note, {snippets})
this.setState({ note, snippetIndex }, () => { this.setState({ note, snippetIndex }, () => {
this.save() this.save()
this.refs['code-' + this.state.snippetIndex].reload() this.refs['code-' + index].reload()
this.refs['code-' + oldIndex].reload()
}) })
} }