Prechádzať zdrojové kódy

Use splice instead of delete

flxy 2 rokov pred
rodič
commit
d21ce77670

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