From 9e837b7b0c009922f2bc38d87666f20f9a6ecbc5 Mon Sep 17 00:00:00 2001
From: ml bonhomme <bonhomme@teklia.com>
Date: Tue, 9 Jan 2024 10:46:31 +0000
Subject: [PATCH] Fix configuration list field item removal

---
 .../Process/Workers/Configurations/Fields/ListField.vue     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/Process/Workers/Configurations/Fields/ListField.vue b/src/components/Process/Workers/Configurations/Fields/ListField.vue
index c4401577c..91d605a57 100644
--- a/src/components/Process/Workers/Configurations/Fields/ListField.vue
+++ b/src/components/Process/Workers/Configurations/Fields/ListField.vue
@@ -119,8 +119,8 @@ export default defineComponent({
     },
     removeItem (i: number) {
       this.newList.splice(i, 1)
-      this.validatedList.splice(i, 1)
-      delete this.itemError[i]
+      this.validateFields()
+      this.itemError.splice(i, 1)
     },
     updateItem (i: number, newValue: string | number | boolean) {
       if (this.newList[i] === newValue) return
@@ -150,7 +150,7 @@ export default defineComponent({
   watch: {
     cleanList: {
       handler (newValue) {
-        if (newValue.length) this.$emit('update:modelValue', newValue)
+        this.$emit('update:modelValue', newValue)
       }
     }
   }
-- 
GitLab