From 21902aff1497ea5106fadbcfdeb2bb8253b7b898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 25 Jan 2021 13:14:38 +0100 Subject: [PATCH] fixes spelling error --- packages/client/src/api/automations.js | 2 +- packages/client/src/api/queries.js | 2 +- packages/client/src/api/rows.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/client/src/api/automations.js b/packages/client/src/api/automations.js index 9d6d4992b9..6a85bf077f 100644 --- a/packages/client/src/api/automations.js +++ b/packages/client/src/api/automations.js @@ -9,7 +9,7 @@ export const triggerAutomation = async (automationId, fields) => { body: { fields }, }) res.error - ? notificationStore.danger("En error has occured") + ? notificationStore.danger("En error has occurred") : notificationStore.success("Automation triggered") return res } diff --git a/packages/client/src/api/queries.js b/packages/client/src/api/queries.js index dd9996b25a..ac6d185f4c 100644 --- a/packages/client/src/api/queries.js +++ b/packages/client/src/api/queries.js @@ -12,7 +12,7 @@ export const executeQuery = async ({ queryId, parameters }) => { }, }) res.error - ? notificationStore.danger("En error has occured") + ? notificationStore.danger("En error has occurred") : notificationStore.success("Query successful") return response } diff --git a/packages/client/src/api/rows.js b/packages/client/src/api/rows.js index 9513b70040..ba5a5439f9 100644 --- a/packages/client/src/api/rows.js +++ b/packages/client/src/api/rows.js @@ -21,7 +21,7 @@ export const saveRow = async row => { body: row, }) res.error - ? notificationStore.danger("En error has occured") + ? notificationStore.danger("En error has occurred") : notificationStore.success("Row saved") return res } @@ -35,7 +35,7 @@ export const updateRow = async row => { body: row, }) res.error - ? notificationStore.danger("En error has occured") + ? notificationStore.danger("En error has occurred") : notificationStore.success("Row updated") return res } @@ -48,7 +48,7 @@ export const deleteRow = async ({ tableId, rowId, revId }) => { url: `/api/${tableId}/rows/${rowId}/${revId}`, }) res.error - ? notificationStore.danger("En error has occured") + ? notificationStore.danger("En error has occurred") : notificationStore.success("Row deleted") return res } @@ -65,7 +65,7 @@ export const deleteRows = async ({ tableId, rows }) => { }, }) res.error - ? notificationStore.danger("En error has occured") + ? notificationStore.danger("En error has occurred") : notificationStore.success(`${rows.length} row(s) deleted`) return res }