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 { data } = this.state;
|
||||||
const { appId, viewId, view } = data;
|
const { appId, viewId, view } = data;
|
||||||
|
|
||||||
// handle tablet case
|
Navigation.back();
|
||||||
if (closeModal) {
|
|
||||||
closeModal();
|
|
||||||
} else {
|
|
||||||
Navigation.back();
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await triggerCancel({
|
await triggerCancel({
|
||||||
|
|
Loading…
Reference in New Issue