mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 11:41:44 +00:00
ESLint: fix let -> const warnings
This commit is contained in:
@@ -98,10 +98,10 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleGenerateToc () {
|
handleGenerateToc () {
|
||||||
let currentMode = this.state.note.snippets[this.state.snippetIndex].mode
|
const currentMode = this.state.note.snippets[this.state.snippetIndex].mode
|
||||||
if (currentMode.includes('Markdown')) {
|
if (currentMode.includes('Markdown')) {
|
||||||
let currentValue = this.refs['code-' + this.state.snippetIndex].value
|
const currentValue = this.refs['code-' + this.state.snippetIndex].value
|
||||||
let currentEditor = this.refs['code-' + this.state.snippetIndex].refs.code.editor
|
const currentEditor = this.refs['code-' + this.state.snippetIndex].refs.code.editor
|
||||||
markdownToc.generate(currentValue, (modifiedValue) => { currentEditor.setValue(modifiedValue) })
|
markdownToc.generate(currentValue, (modifiedValue) => { currentEditor.setValue(modifiedValue) })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user