mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Fixed last nonfunctional changes made earlier
Now iterates in the SnippetNoteDetail constructor the snippets and if linesHighlighted is not defined assigns an empty array
This commit is contained in:
@@ -52,6 +52,12 @@ class SnippetNoteDetail extends React.Component {
|
||||
})
|
||||
}
|
||||
|
||||
this.state.note.snippets.forEach(function (s) {
|
||||
if (s.linesHighlighted === undefined) {
|
||||
s.linesHighlighted = []
|
||||
}
|
||||
})
|
||||
|
||||
this.scrollToNextTabThreshold = 0.7
|
||||
this.generateToc = () => this.handleGenerateToc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user