fixes spelling error
This commit is contained in:
parent
b64b164236
commit
58f8350984
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue