mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +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})
|
let folder = _.find(storage.folders, {key: folderKey})
|
||||||
if (folder == null) {
|
if (folder == null) {
|
||||||
return data.storageNoteMap
|
let storageNoteSet = data.storageNoteMap
|
||||||
.get(storage.key)
|
.get(storage.key)
|
||||||
.map((uniqueKey) => data.noteMap.get(uniqueKey))
|
if (storageNoteSet == null) storageNoteSet = []
|
||||||
|
return storageNoteSet
|
||||||
|
.map((uniqueKey) => data.noteMap.get(uniqueKey))
|
||||||
}
|
}
|
||||||
|
|
||||||
let folderNoteKeyList = data.folderNoteMap
|
let folderNoteKeyList = data.folderNoteMap
|
||||||
|
|||||||
Reference in New Issue
Block a user