From d3b7dbd53ac3ffa825ff5e65661cd5b141a7a72a Mon Sep 17 00:00:00 2001 From: Spitap Date: Sun, 23 Apr 2023 19:00:14 +0200 Subject: [PATCH] Code cleaning --- frontend/src/components/parameters/ParametersForm.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/components/parameters/ParametersForm.vue b/frontend/src/components/parameters/ParametersForm.vue index b4e888a3d..a0b8e8069 100644 --- a/frontend/src/components/parameters/ParametersForm.vue +++ b/frontend/src/components/parameters/ParametersForm.vue @@ -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) }