From b841796525b46b03db5237a6593a65cc31d1d744 Mon Sep 17 00:00:00 2001 From: Dmitriy Danilov Date: Mon, 5 Oct 2020 08:21:17 +0300 Subject: [PATCH] fix: add missed error callback for download (#912) Fixes: #673 --- app/client/src/sagas/ActionExecutionSagas.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/client/src/sagas/ActionExecutionSagas.ts b/app/client/src/sagas/ActionExecutionSagas.ts index 25db87946c..7e96be9e27 100644 --- a/app/client/src/sagas/ActionExecutionSagas.ts +++ b/app/client/src/sagas/ActionExecutionSagas.ts @@ -150,6 +150,8 @@ function* downloadSaga( message: "Download failed. File name was not provided", type: "error", }); + + if (event.callback) event.callback({ success: false }); return; } const dataType = getType(data);