diff --git a/apps/mobile/src/components/DialogManager/index.js b/apps/mobile/src/components/DialogManager/index.js index da2cc69a2..c6e165820 100644 --- a/apps/mobile/src/components/DialogManager/index.js +++ b/apps/mobile/src/components/DialogManager/index.js @@ -67,7 +67,7 @@ export class DialogManager extends Component { this.setState( { actionSheetData: data, - item: data.item, + item: data.item ? data.item : {}, }, () => { this.actionSheet._setModalVisible(); @@ -90,7 +90,7 @@ export class DialogManager extends Component { loadNote = i => { if (i && i.type === 'new') { this.setState({ - note: {}, + item: {}, }); } else { note = i; @@ -282,7 +282,7 @@ export class DialogManager extends Component { : null } initialOffsetFromBottom={ - DDS.isTab || item.type !== 'note' || item.dateDeleted ? 1 : 0.5 + DDS.isTab || item?.type !== 'note' || item.dateDeleted ? 1 : 0.5 } bounceOnOpen={true} gestureEnabled={true}