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

Fix so that linesHighlighted defaults to [] when does't find it

This commit is contained in:
Duarte-Frazao
2018-12-08 12:07:28 +00:00
parent 191295b6de
commit f483f8fdf0

View File

@@ -118,6 +118,8 @@ function updateNote (storageKey, noteKey, input) {
if (noteData.type === 'SNIPPET_NOTE') {
noteData.title
if(noteData.linesHighlighted = null)
noteData.linesHighlighted = [];
}
Object.assign(noteData, input, {