From 03e679925859ccf43b3b0eba7abc37107e22c3d8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Jan 2021 09:31:41 +0000 Subject: [PATCH] Remove success notification on query success to prevent notifications on 'read' queries --- packages/client/src/api/queries.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }