|
|
@ -58,7 +58,14 @@ export const API = createAPIClient({ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (!ignore) { |
|
|
if (!ignore) { |
|
|
notificationStore.actions.error(message) |
|
|
const validationErrors = error?.json?.validationErrors |
|
|
|
|
|
if (validationErrors) { |
|
|
|
|
|
for (let field in validationErrors) { |
|
|
|
|
|
notificationStore.actions.error(`${field} ${validationErrors[field]}`) |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
notificationStore.actions.error(message) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|