aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-09 11:23:14 +0200
committerChocobozzz <me@florianbigard.com>2018-05-09 11:41:18 +0200
commit360329cc029c062bfb145c90f7bf1c007c39af81 (patch)
treea40fb8e31c0d40d65a83e9f0fbc12793230b5c0e /client/src/app/shared/misc
parentbf696869538eaef27e5a8445035967c01f214501 (diff)
downloadPeerTube-360329cc029c062bfb145c90f7bf1c007c39af81.tar.gz
PeerTube-360329cc029c062bfb145c90f7bf1c007c39af81.tar.zst
PeerTube-360329cc029c062bfb145c90f7bf1c007c39af81.zip
Account/channel descriptions are not required anymore
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r--client/src/app/shared/misc/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts
index 99f6b3cf0..b5bf99be2 100644
--- a/client/src/app/shared/misc/utils.ts
+++ b/client/src/app/shared/misc/utils.ts
@@ -66,7 +66,7 @@ function objectToFormData (obj: any, form?: FormData, namespace?: string) {
66 66
67 if (obj[key] === undefined) continue 67 if (obj[key] === undefined) continue
68 68
69 if (typeof obj[ key ] === 'object' && !(obj[ key ] instanceof File)) { 69 if (obj[key] !== null && typeof obj[ key ] === 'object' && !(obj[ key ] instanceof File)) {
70 objectToFormData(obj[ key ], fd, key) 70 objectToFormData(obj[ key ], fd, key)
71 } else { 71 } else {
72 fd.append(formKey, obj[ key ]) 72 fd.append(formKey, obj[ key ])