Code cleaning

This commit is contained in:
Spitap
2023-04-23 19:00:14 +02:00
parent 17bbd566a2
commit d3b7dbd53a
@@ -159,9 +159,7 @@ export default {
this.formErrors = error.response.data
Object.keys(this.formErrors).forEach(element => {
for (let i = 0; i < this.structure.length; i++) {
const isIn = (this.structure[i].parameters.filter(function (val, index, array) {
return val.name === element
}).length > 0)
const isIn = this.structure[i].parameters.filter(param => param.name === element).length > 0
if (isIn) {
this.tab_error.push(i)
}