Skip to content
Snippets Groups Projects
Commit 9e837b7b authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Fix configuration list field item removal

parent b68ea4f8
No related branches found
No related tags found
1 merge request!1620Fix configuration list field item removal
......@@ -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)
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment