A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix crash on opening addTopic dialog
ammarahm-eddb419d4c1f67
diff --git a/apps/mobile/src/components/DialogManager/index.js b/apps/mobile/src/components/DialogManager/index.jsindex c6e165820..6c1dd7f04 100644--- a/apps/mobile/src/components/DialogManager/index.js+++ b/apps/mobile/src/components/DialogManager/index.js@@ -100,6 +100,17 @@ export class DialogManager extends Component {}};+ showAddTopic = notebook => {+ this.setState({+ item: notebook,+ });+ this.addTopicsDialog.open();+ };++ hideAddTopic = () => {+ this.addTopicsDialog.close();+ };+componentDidMount() {eSubscribeEvent(eOnLoadNote, this.loadNote);@@ -166,17 +177,6 @@ export class DialogManager extends Component {this.addNotebooksDialog.close();};- showAddTopic = notebook => {- this.setState({- item: notebook,- });- this.addTopicsDialog.open();- };-- hideAddTopic = () => {- this.addTopicsDialog.close();- };-_showSimpleDialog = data => {this.setState({@@ -238,7 +238,7 @@ export class DialogManager extends Component {break;}case 'topic': {- this.showAddTOpic();+ this.showAddTopic();break;}case 'movenote': {