Skip to content

Commit 338b37e

Browse files
committed
return an empty string instead of "undefined" when configuring errors
1 parent 2088422 commit 338b37e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/api/configurations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const configureErrors = (errors) => {
8585
.filter(error => error && Object.keys(error).length)
8686
.map(error => ({
8787
...error,
88-
message: `${error.message} (${error.response?.data?.message})`,
88+
message: `${error.message} (${error.response?.data?.message || ''})`,
8989
}))
9090
let body = []
9191
let title = ''

0 commit comments

Comments
 (0)