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:
parent
bf69686953
commit
360329cc02
9 changed files with 100 additions and 61 deletions
|
@ -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 ])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue