mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix possible null error
This commit is contained in:
@@ -381,11 +381,11 @@ export class DialogManager extends Component {
|
|||||||
/>
|
/>
|
||||||
<AddTopicDialog
|
<AddTopicDialog
|
||||||
ref={(ref) => (this.addTopicsDialog = ref)}
|
ref={(ref) => (this.addTopicsDialog = ref)}
|
||||||
toEdit={item.type === 'topic' ? item : null}
|
toEdit={item?.type === 'topic' ? item : null}
|
||||||
notebookID={
|
notebookID={
|
||||||
actionSheetData.extraData
|
actionSheetData.extraData
|
||||||
? actionSheetData.extraData.notebookID
|
? actionSheetData.extraData.notebookID
|
||||||
: item.id
|
: item?.id
|
||||||
}
|
}
|
||||||
colors={colors}
|
colors={colors}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user