fix possible null error

This commit is contained in:
ammarahm-ed
2020-11-25 16:56:01 +05:00
parent 76042b55ab
commit 2e47578aef

View File

@@ -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}
/>