1
0
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:
Duarte-Frazao
2018-12-08 17:18:40 +00:00
parent 492294e11d
commit 62609a2918
5 changed files with 10 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ function createSnippet (snippetFile) {
name: 'Unnamed snippet',
prefix: [],
content: '',
linesHighlighted: [],
linesHighlighted: []
}
fetchSnippet(null, snippetFile).then((snippets) => {
snippets.push(newSnippet)