Chore: Evaluate ModalBlockView - TypeScript (#4124)

This commit is contained in:
Reinaldo Neto 2022-05-17 10:22:41 -03:00 committed by GitHub
parent be19da54a3
commit f5051e189d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -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();
}
try {
await triggerCancel({