You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Various improvements
This commit is contained in:
@@ -23,7 +23,6 @@ class NotesScreenComponent extends BaseScreenComponent {
|
||||
dialogs.confirm(this, _('Delete notebook?')).then((ok) => {
|
||||
if (!ok) return;
|
||||
|
||||
|
||||
Folder.delete(folderId).then(() => {
|
||||
return NotesScreenUtils.openDefaultNoteList();
|
||||
}).catch((error) => {
|
||||
@@ -51,6 +50,12 @@ class NotesScreenComponent extends BaseScreenComponent {
|
||||
|
||||
render() {
|
||||
let folder = Folder.byId(this.props.folders, this.props.selectedFolderId);
|
||||
|
||||
if (!folder) {
|
||||
NotesScreenUtils.openDefaultNoteList();
|
||||
return null;
|
||||
}
|
||||
|
||||
let title = folder ? folder.title : null;
|
||||
const addFolderNoteButtons = folder.id != Folder.conflictFolderId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user