From 63436fc5eadc3f58a047fe87be9c4afa84a7a9ca Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Aug 2021 11:12:21 +0200 Subject: [PATCH] Fix uploading empty tags --- shared/extra-utils/requests/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/extra-utils/requests/requests.ts b/shared/extra-utils/requests/requests.ts index e3ecd1af2..5a2b09dcc 100644 --- a/shared/extra-utils/requests/requests.ts +++ b/shared/extra-utils/requests/requests.ts @@ -185,7 +185,7 @@ function buildFields (req: request.Test, fields: { [ fieldName: string ]: any }, if (fields[key] === undefined) continue if (Array.isArray(fields[key]) && fields[key].length === 0) { - req.field(key, null) + req.field(key, []) continue } -- 2.41.0