Skip to content

Commit

Permalink
[BUGFIX] serialize null array items to string (emberjs#8083)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkovar committed Aug 19, 2022
1 parent dc31269 commit 157a8d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function serializeQueryParams(queryParamsObject: object | string): string
if (RBRACKET.test(prefix)) {
add(s, prefix, obj[i]);
} else {
buildParams(prefix + '[' + (typeof obj[i] === 'object' ? i : '') + ']', obj[i]);
buildParams(prefix + '[' + (typeof obj[i] === 'object' && obj[i] !== null ? i : '') + ']', obj[i]);
}
}
} else if (isPlainObject(obj)) {
Expand Down

0 comments on commit 157a8d4

Please sign in to comment.