Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix possible null error

ammarahm-ed2e47578aef94
diff --git a/apps/mobile/src/components/DialogManager/index.js b/apps/mobile/src/components/DialogManager/index.js
index 388301fbf..2acd3a887 100644
--- a/apps/mobile/src/components/DialogManager/index.js
+++ b/apps/mobile/src/components/DialogManager/index.js
@@ -381,11 +381,11 @@ export class DialogManager extends Component {
/>
<AddTopicDialog
ref={(ref) => (this.addTopicsDialog = ref)}
- toEdit={item.type === 'topic' ? item : null}
+ toEdit={item?.type === 'topic' ? item : null}
notebookID={
actionSheetData.extraData
? actionSheetData.extraData.notebookID
- : item.id
+ : item?.id
}
colors={colors}
/>