CFE-11 fixed bug toast error 422
This commit is contained in:
@@ -59,7 +59,7 @@ const errorValidation = (pushToastList, response, t, notification) => {
|
||||
const errorsArray = response.data.errors
|
||||
|
||||
errorsMap.map((item, index) => {
|
||||
Notifications(pushToastList, "error", t, errorsArray[item][0], response.data.message);
|
||||
Notifications(pushToastList, "error", t, response.status, errorsArray[item][0]);
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user