From d228f6d117f1efd988a61010f2ea123108122c3d Mon Sep 17 00:00:00 2001 From: Nikhil Nandagopal Date: Wed, 9 Dec 2020 18:22:36 +0530 Subject: [PATCH] fix for undefined access to crash field --- app/client/src/sagas/ErrorSagas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/sagas/ErrorSagas.tsx b/app/client/src/sagas/ErrorSagas.tsx index 2fd96971cf..4b6d95d356 100644 --- a/app/client/src/sagas/ErrorSagas.tsx +++ b/app/client/src/sagas/ErrorSagas.tsx @@ -108,7 +108,7 @@ export function* errorSaga( if (show) { effects.push(ErrorEffectTypes.SHOW_ALERT); } - if (error.crash) { + if (error && error.crash) { effects.push(ErrorEffectTypes.SAFE_CRASH); } for (const effect of effects) {