Skip to content

Commit 08104c0

Browse files
fix(serializer): fixed serialization of array-like objects; (#5518)
1 parent 7fbfbbe commit 08104c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/helpers/toFormData.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function toFormData(obj, formData, options) {
152152
value = JSON.stringify(value);
153153
} else if (
154154
(utils.isArray(value) && isFlatArray(value)) ||
155-
(utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))
155+
((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
156156
)) {
157157
// eslint-disable-next-line no-param-reassign
158158
key = removeBrackets(key);

0 commit comments

Comments
 (0)