Browse Source

Use splice instead of delete

flxy 2 years ago
parent
commit
d21ce77670
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/settings_modal/tabs/profile_tab.js

+ 1 - 1
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]