mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix errorhandling on cases of invalid notes
This commit is contained in:
@@ -24,7 +24,8 @@ function data (state = defaultDataMap(), action) {
|
||||
state.storageMap.set(storage.key, storage)
|
||||
})
|
||||
|
||||
action.notes.forEach((note) => {
|
||||
action.notes.some((note) => {
|
||||
if (note === undefined) return true
|
||||
let uniqueKey = note.storage + '-' + note.key
|
||||
let folderKey = note.storage + '-' + note.folder
|
||||
state.noteMap.set(uniqueKey, note)
|
||||
|
||||
Reference in New Issue
Block a user