error request controlled

This commit is contained in:
Burak Civan 2022-12-23 10:55:52 +03:00
parent 6cdaadfa92
commit fe72409b11

View File

@ -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") {