From 360329cc029c062bfb145c90f7bf1c007c39af81 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 May 2018 11:23:14 +0200 Subject: Account/channel descriptions are not required anymore --- client/src/app/shared/misc/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared/misc') 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) { 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 ]) -- cgit v1.2.3