commit: d21ce77670d1a639929aac468e0b4c88cf0b2186
parent 4e02005dd9237f3b44629ece293aeb42098323be
Author: flxy <flxy@staycomfy.dev>
Date: Thu, 12 Jan 2023 09:45:10 +0100
Use splice instead of delete
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js
@@ -153,7 +153,7 @@ const ProfileTab = {
return false
},
deleteField (index, event) {
- this.$delete(this.newFields, index)
+ this.newFields.splice(index, 1)
},
uploadFile (slot, e) {
const file = e.target.files[0]