Skip to content

Commit

Permalink
Merge branch 'canary' into fix/ky-universal-polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Jul 16, 2020
2 parents be583fa + dad3299 commit ac62c20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function searchParamsToUrlQuery(
searchParams: URLSearchParams
): ParsedUrlQuery {
const query: ParsedUrlQuery = {}
Array.from(searchParams.entries()).forEach(([key, value]) => {
searchParams.forEach((value, key) => {
if (typeof query[key] === 'undefined') {
query[key] = value
} else if (Array.isArray(query[key])) {
Expand Down

0 comments on commit ac62c20

Please sign in to comment.