Removing console logging.
This commit is contained in:
parent
022b3acbcc
commit
bfec84e1df
|
@ -29,10 +29,8 @@
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const response = error.json
|
const response = error.json
|
||||||
if (error.handled && response?.errors) {
|
if (error.handled && response?.errors) {
|
||||||
console.error("FIRST")
|
|
||||||
errors = response.errors
|
errors = response.errors
|
||||||
} else if (error.handled && response?.validationErrors) {
|
} else if (error.handled && response?.validationErrors) {
|
||||||
console.error(response.validationErrors)
|
|
||||||
const mappedErrors = {}
|
const mappedErrors = {}
|
||||||
for (let field in response.validationErrors) {
|
for (let field in response.validationErrors) {
|
||||||
mappedErrors[
|
mappedErrors[
|
||||||
|
@ -40,7 +38,6 @@
|
||||||
] = `${field} ${response.validationErrors[field][0]}`
|
] = `${field} ${response.validationErrors[field][0]}`
|
||||||
}
|
}
|
||||||
errors = mappedErrors
|
errors = mappedErrors
|
||||||
console.log(errors)
|
|
||||||
} else {
|
} else {
|
||||||
notifications.error(`Failed to save row - ${error.message}`)
|
notifications.error(`Failed to save row - ${error.message}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue