mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix crash on open topic dialog
This commit is contained in:
@@ -101,9 +101,12 @@ export class DialogManager extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
showAddTopic = notebook => {
|
showAddTopic = notebook => {
|
||||||
this.setState({
|
if (notebook) {
|
||||||
item: notebook,
|
this.setState({
|
||||||
});
|
item: notebook,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.addTopicsDialog.open();
|
this.addTopicsDialog.open();
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -200,7 +203,6 @@ export class DialogManager extends Component {
|
|||||||
} else {
|
} else {
|
||||||
this._showSimpleDialog(TEMPLATE_DELETE(this.state.item.type));
|
this._showSimpleDialog(TEMPLATE_DELETE(this.state.item.type));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'permanant_delete': {
|
case 'permanant_delete': {
|
||||||
|
|||||||
Reference in New Issue
Block a user