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

UPDATE_FOLDER & DELETE_FOLDER

fix store bug when creating note
This commit is contained in:
Dick Choi
2016-09-02 09:33:01 +09:00
parent 4ee49d5991
commit a391ac682d
5 changed files with 88 additions and 31 deletions

View File

@@ -178,8 +178,11 @@ class NoteList extends React.Component {
let folderNoteKeyList = data.folderNoteMap
.get(storage.key + '-' + folder.key)
return folderNoteKeyList
.map((uniqueKey) => data.noteMap.get(uniqueKey))
return folderNoteKeyList != null
? folderNoteKeyList
.map((uniqueKey) => data.noteMap.get(uniqueKey))
: []
}
handleNoteClick (uniqueKey) {