1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Changes to pass tests and lint code

This commit is contained in:
Duarte-Frazao
2018-11-30 19:20:40 +00:00
parent 1668ef6bb4
commit a9442a019f
6 changed files with 25 additions and 25 deletions

View File

@@ -410,7 +410,7 @@ class SnippetNoteDetail extends React.Component {
return (e) => {
const snippets = this.state.note.snippets.slice()
snippets[index].content = this.refs['code-' + index].value
snippets[index].linesHighlighted=e.options.linesHighlighted
snippets[index].linesHighlighted = e.options.linesHighlighted
this.setState(state => ({note: Object.assign(state.note, {snippets: snippets})}))
this.setState(state => ({
@@ -605,7 +605,7 @@ class SnippetNoteDetail extends React.Component {
name: '',
mode: config.editor.snippetDefaultLanguage || 'text',
content: '',
linesHighlighted:[]
linesHighlighted: []
}])
const snippetIndex = note.snippets.length - 1