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

Merge pull request #803 from asmsuechan/fix-note-creation-in-all-notes

Fix note creation in All Notes
This commit is contained in:
SuenagaRyota
2017-08-15 10:16:07 +09:00
committed by GitHub

View File

@@ -58,8 +58,7 @@ class NewNoteButton extends React.Component {
}
if (storage == null) this.showMessageBox('No storage to create a note')
let folder = storage.folders[0]
folder = _.find(storage.folders, {key: params.folderKey})
const folder = _.find(storage.folders, {key: params.folderKey}) || storage.folders[0]
if (folder == null) this.showMessageBox('No folder to create a note')
return {