diff --git a/packages/client/src/api/queries.js b/packages/client/src/api/queries.js index 591252402..4e89921bb 100644 --- a/packages/client/src/api/queries.js +++ b/packages/client/src/api/queries.js @@ -11,8 +11,8 @@ export const executeQuery = async ({ queryId, parameters }) => { parameters, }, }) - res.error - ? notificationStore.danger("An error has occurred") - : notificationStore.success("Query successful") + if (res.error) { + notificationStore.danger("An error has occurred") + } return res }