bugfix: toast notification for failed query (#580)

This commit is contained in:
Arpit 2021-08-23 17:01:52 +05:30 committed by GitHub
parent 64db1a2a03
commit e748b2457e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;