diff --git a/packages/client/src/api/queries.js b/packages/client/src/api/queries.js index 5912524023..4e89921bb6 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 }