Removing console logging.

This commit is contained in:
Michael Drury 2023-04-05 20:32:41 +01:00
parent 022b3acbcc
commit bfec84e1df
1 changed files with 0 additions and 3 deletions

View File

@ -29,10 +29,8 @@
} catch (error) {
const response = error.json
if (error.handled && response?.errors) {
console.error("FIRST")
errors = response.errors
} else if (error.handled && response?.validationErrors) {
console.error(response.validationErrors)
const mappedErrors = {}
for (let field in response.validationErrors) {
mappedErrors[
@ -40,7 +38,6 @@
] = `${field} ${response.validationErrors[field][0]}`
}
errors = mappedErrors
console.log(errors)
} else {
notifications.error(`Failed to save row - ${error.message}`)
}