From cafb562597bbd7b16d5478ad7abf8ece201130d1 Mon Sep 17 00:00:00 2001 From: Chuang Ke Date: Wed, 7 Sep 2022 13:35:13 +0800 Subject: [PATCH] [config_tool] Duplicate error for vUART connection improve the translateError function by adding a condition: if there are errors describing the same error and same paths, remove the repeat one. Tracked-On: #8117 Signed-off-by: Chuang-Ke Reviewed-by: Junjie Mao --- .../configurator/packages/configurator/src/pages/Config.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue index 86c925533..c094ca3d0 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue @@ -415,6 +415,7 @@ export default { if (errorType === 'semantic') { formErrors[vmid].push(error) } + formErrors[vmid] = _.uniq(formErrors[vmid]) }) }