Use splice instead of delete

This commit is contained in:
flxy 2023-01-12 09:45:10 +01:00
parent 4e02005dd9
commit d21ce77670

View File

@ -153,7 +153,7 @@ const ProfileTab = {
return false return false
}, },
deleteField (index, event) { deleteField (index, event) {
this.$delete(this.newFields, index) this.newFields.splice(index, 1)
}, },
uploadFile (slot, e) { uploadFile (slot, e) {
const file = e.target.files[0] const file = e.target.files[0]