We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c78ea17 + 86594f7 commit 8d5a5c6Copy full SHA for 8d5a5c6
src/error/api.js
@@ -33,7 +33,11 @@ class ApiError extends BaseError {
33
const issues = [];
34
35
for (const field in error.response.data) {
36
- issues.push(`${ field } (${ error.response.data[field].join(', ') })`);
+ issues.push(`${ field } (${
37
+ Array.isArray(error.response.data[field])
38
+ ? error.response.data[field].join(', ')
39
+ : error.response.data[field]
40
+ })`);
41
}
42
43
msg = `Invalid payload data- ${ issues.join(', ') }`;
0 commit comments