mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Fix key namespace for empty arrays
This commit is contained in:
@@ -301,7 +301,7 @@ function buildFields (req: request.Test, fields: { [fieldName: string]: any }, n
|
|||||||
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, [])
|
req.field(formKey, [])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user