Chore: Evaluate ModalBlockView - TypeScript (#4124)
This commit is contained in:
parent
be19da54a3
commit
f5051e189d
|
@ -171,16 +171,11 @@ class ModalBlockView extends React.Component<IModalBlockViewProps, IModalBlockVi
|
|||
}
|
||||
};
|
||||
|
||||
cancel = async ({ closeModal }: { closeModal?: () => void }) => {
|
||||
cancel = async () => {
|
||||
const { data } = this.state;
|
||||
const { appId, viewId, view } = data;
|
||||
|
||||
// handle tablet case
|
||||
if (closeModal) {
|
||||
closeModal();
|
||||
} else {
|
||||
Navigation.back();
|
||||
}
|
||||
Navigation.back();
|
||||
|
||||
try {
|
||||
await triggerCancel({
|
||||
|
|
Loading…
Reference in New Issue