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

Fix note creation in All Notes

This commit is contained in:
asmsuechan
2017-08-15 10:09:17 +09:00
parent f2a03e4cc7
commit b85790d2fa

View File

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