1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Account/channel descriptions are not required anymore

This commit is contained in:
Chocobozzz 2018-05-09 11:23:14 +02:00
parent bf69686953
commit 360329cc02
No known key found for this signature in database
GPG key ID: 583A612D890159BE
9 changed files with 100 additions and 61 deletions

View file

@ -66,7 +66,7 @@ function objectToFormData (obj: any, form?: FormData, namespace?: string) {
if (obj[key] === undefined) continue
if (typeof obj[ key ] === 'object' && !(obj[ key ] instanceof File)) {
if (obj[key] !== null && typeof obj[ key ] === 'object' && !(obj[ key ] instanceof File)) {
objectToFormData(obj[ key ], fd, key)
} else {
fd.append(formKey, obj[ key ])