aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/requests/requests.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/requests/requests.ts')
-rw-r--r--shared/extra-utils/requests/requests.ts2
1 files changed, 1 insertions, 1 deletions
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 },
185 if (fields[key] === undefined) continue 185 if (fields[key] === undefined) continue
186 186
187 if (Array.isArray(fields[key]) && fields[key].length === 0) { 187 if (Array.isArray(fields[key]) && fields[key].length === 0) {
188 req.field(key, null) 188 req.field(key, [])
189 continue 189 continue
190 } 190 }
191 191