error request controlled
This commit is contained in:
parent
6cdaadfa92
commit
fe72409b11
|
|
@ -493,9 +493,11 @@ export default class Form {
|
||||||
|
|
||||||
// Form fields check validation issue
|
// Form fields check validation issue
|
||||||
onFail(error) {
|
onFail(error) {
|
||||||
if (error.request.status == 419) {
|
if (error.request) {
|
||||||
window.location.href = '';
|
if (error.request.status == 419) {
|
||||||
return;
|
window.location.href = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof this.errors != "undefined") {
|
if (typeof this.errors != "undefined") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue