1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

fix NoteList bug

This commit is contained in:
Dick Choi
2016-09-10 15:11:00 +09:00
parent 4c486c399b
commit f50968f992

View File

@@ -203,9 +203,11 @@ class NoteList extends React.Component {
let folder = _.find(storage.folders, {key: folderKey})
if (folder == null) {
return data.storageNoteMap
.get(storage.key)
.map((uniqueKey) => data.noteMap.get(uniqueKey))
let storageNoteSet = data.storageNoteMap
.get(storage.key)
if (storageNoteSet == null) storageNoteSet = []
return storageNoteSet
.map((uniqueKey) => data.noteMap.get(uniqueKey))
}
let folderNoteKeyList = data.folderNoteMap