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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user