Fix uploading empty tags

pull/4337/head
Chocobozzz 2021-08-18 11:12:21 +02:00
parent 1d1da33661
commit 63436fc5ea
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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
}