1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Fixes #139: Crash when creating new notebook

This commit is contained in:
Laurent Cozic 2018-01-06 20:37:42 +01:00
parent f45a4fff8b
commit 83398dd0bc

View File

@ -96,6 +96,7 @@ class NotesScreenComponent extends BaseScreenComponent {
if (this.props.selectedFolderId == Folder.conflictFolderId()) return [];
const folder = this.parentItem();
if (!folder) return [];
let output = [];
if (!folder.encryption_applied) output.push({ title: _('Edit notebook'), onPress: () => { this.editFolder_onPress(this.props.selectedFolderId); } });