diff --git a/src/components/Process/Workers/Configurations/Fields/ListField.vue b/src/components/Process/Workers/Configurations/Fields/ListField.vue index 91d605a57b1c3d6a0846df2799e251e789ceddfc..7b7e5fa60ef91f9370ccd1ad422b3187d0522978 100644 --- a/src/components/Process/Workers/Configurations/Fields/ListField.vue +++ b/src/components/Process/Workers/Configurations/Fields/ListField.vue @@ -96,7 +96,7 @@ export default defineComponent({ cleanList () { if (Array.isArray(this.validatedList)) { return this.validatedList.filter((item) => { - return String(item).trim().length > 0 + return String(item).length > 0 }) } else return [] }, @@ -125,7 +125,7 @@ export default defineComponent({ updateItem (i: number, newValue: string | number | boolean) { if (this.newList[i] === newValue) return // Do not keep the last valid value in the list if the field is emptied - if (!String(newValue).trim().length) { + if (!String(newValue).length) { (this.newList as (string | number | boolean)[]).splice(i, 1, newValue) this.itemError[i] = null } @@ -134,7 +134,7 @@ export default defineComponent({ }, validateFields () { for (const [i, item] of this.newList.entries()) { - if (String(item).trim().length && FIELDS[this.field.subtype].validate !== undefined) { + if (String(item).length && FIELDS[this.field.subtype].validate !== undefined) { try { const validated = FIELDS[this.field.subtype].validate(item) this.itemError[i] = null