mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix possible null error
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user