This commit is contained in:
ayntee
2021-02-02 10:03:05 +04:00
parent dfcb406c66
commit 1231809f89
+1 -1
View File
@@ -159,7 +159,7 @@ function createRequestBody(body: any, method: RequestMethods) {
headers["X-Audit-Log-Reason"] = encodeURIComponent(body.reason); headers["X-Audit-Log-Reason"] = encodeURIComponent(body.reason);
} }
if (body.file) { if (body?.file) {
if (!Array.isArray(body.file)) body.file = [body.file]; if (!Array.isArray(body.file)) body.file = [body.file];
const form = new FormData(); const form = new FormData();