mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix NoteList bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user