diff options
Diffstat (limited to 'shared/extra-utils')
-rw-r--r-- | shared/extra-utils/requests/requests.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/extra-utils/requests/requests.ts b/shared/extra-utils/requests/requests.ts index 501e0b374..b6b9024ed 100644 --- a/shared/extra-utils/requests/requests.ts +++ b/shared/extra-utils/requests/requests.ts | |||
@@ -85,6 +85,7 @@ function makeUploadRequest (options: CommonRequestParams & { | |||
85 | 85 | ||
86 | Object.keys(options.attaches || {}).forEach(attach => { | 86 | Object.keys(options.attaches || {}).forEach(attach => { |
87 | const value = options.attaches[attach] | 87 | const value = options.attaches[attach] |
88 | if (!value) return | ||
88 | 89 | ||
89 | if (Array.isArray(value)) { | 90 | if (Array.isArray(value)) { |
90 | req.attach(attach, buildAbsoluteFixturePath(value[0]), value[1]) | 91 | req.attach(attach, buildAbsoluteFixturePath(value[0]), value[1]) |