Skip to content

Commit

Permalink
fix: properly append array values to normalizedParams object
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul ter Laak committed Aug 16, 2024
1 parent a51064a commit 5e2da38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/fetch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ ${
if (value === null) {
normalizedParams.append(key, 'null');
} else if (value !== undefined) {
normalizedParams.append(key, value.toString());
if (value instanceof Array) {
value.forEach((v) => normalizedParams.append(key, v.toString()));
} else {
normalizedParams.append(key, value.toString());
}
}
});`
: ''
Expand Down

0 comments on commit 5e2da38

Please sign in to comment.