Mobile: Fixed issue when creating new notebook and going back

pull/3589/head
Laurent Cozic 2020-08-07 02:03:33 +00:00
parent 3253146dae
commit 29fbafdfff
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class NotesScreenComponent extends BaseScreenComponent {
};
this.backHandler = () => {
if (this.dialogbox.state.isVisible) {
if (this.dialogbox && this.dialogbox.state && this.dialogbox.state.isVisible) {
this.dialogbox.close();
return true;
}