Skip to content

Commit 25a25b7

Browse files
committed
Stringify profile links
1 parent d13ab48 commit 25a25b7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

templates/v3/user_profile_edit.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@
515515
if (msg) hasError = true;
516516
});
517517
if (hasError) return;
518-
formData.append('profile_links', this.collectLinks())
518+
formData.append('profile_links', JSON.stringify(this.collectLinks()))
519+
519520

520-
521521
let avatar = avatarInput.value
522522
if(avatarDelete.checked) {
523523
avatar = null;
@@ -528,7 +528,7 @@
528528
else if(avatarInputNew.files.length > 0) formData.append('profile_image', avatarInputNew.files[0])
529529
}
530530
formData.append('delete_profile_image', avatarDelete.checked)
531-
531+
532532
this.saving = true;
533533
this.saveStatus = '';
534534
this.saveError = '';

0 commit comments

Comments
 (0)