Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 20, 2024
1 parent 0cb3136 commit ceaec66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/appendParamsToUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
export default function appendParamsToUrl(url, params = {}) {
for (const key of Object.keys(params)) {
if (Array.isArray(params[key])) {
// @ts-ignore
for (const k of Object.keys(params[key])) {
// @ts-ignore
url.searchParams.append(isNaN(k) ? `${key}[${k}]` : key, params[key][k]);
}
} else {
Expand Down

0 comments on commit ceaec66

Please sign in to comment.