Skip to content

Commit

Permalink
fix: carry over multiple params (#1252)
Browse files Browse the repository at this point in the history
#1118

Fixes issue with carry over logic not bringing for params that are
defined multiple times
  • Loading branch information
codemonkey800 authored Oct 18, 2024
1 parent 3312884 commit 3c86411
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/packages/data-portal/app/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export function carryOverFilterParams({
prevParams: URLSearchParams
}) {
for (const key of filters) {
const value = prevParams.get(key)

if (value) {
params.set(key, value)
}
prevParams.getAll(key).forEach((value) => params.append(key, value))
}

return params
Expand Down

0 comments on commit 3c86411

Please sign in to comment.