From e748b2457e8e4aad22ad0db0bd3b548492b341ae Mon Sep 17 00:00:00 2001 From: Arpit Date: Mon, 23 Aug 2021 17:01:52 +0530 Subject: [PATCH] bugfix: toast notification for failed query (#580) --- frontend/src/_helpers/appUtils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 744dd0fcb9..08e1f8edcc 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -329,7 +329,6 @@ export function runQuery(_ref, queryId, queryName, confirmed = undefined) { return; } } - const newState = { ..._ref.state.currentState, queries: { @@ -356,7 +355,7 @@ export function runQuery(_ref, queryId, queryName, confirmed = undefined) { } if (data.status === 'failed') { - toast.error(data.error.message, { hideProgressBar: true, autoClose: 3000 }); + toast.error(data.message, { hideProgressBar: true, autoClose: 3000 }); } let rawData = data.data;