mirror of https://github.com/Chocobozzz/PeerTube
Fix uploading empty tags
parent
1d1da33661
commit
63436fc5ea
|
@ -185,7 +185,7 @@ function buildFields (req: request.Test, fields: { [ fieldName: string ]: any },
|
||||||
if (fields[key] === undefined) continue
|
if (fields[key] === undefined) continue
|
||||||
|
|
||||||
if (Array.isArray(fields[key]) && fields[key].length === 0) {
|
if (Array.isArray(fields[key]) && fields[key].length === 0) {
|
||||||
req.field(key, null)
|
req.field(key, [])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue