Skip to content

Commit

Permalink
fix: fixed issue with filter selection logic (#3628)
Browse files Browse the repository at this point in the history
Co-authored-by: Ansh Goyal <[email protected]>%0ACo-authored-by: asyncapi-bot <[email protected]>
  • Loading branch information
Shriya-Chauhan and asyncapi-bot authored Jan 30, 2025
1 parent 59209f2 commit bca2a91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/navigation/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export default function Filter({ data, onFilter, checks, className }: FilterProp

if (e) {
newQuery[check.name] = e;
} else {
// Remove a specific filter upon clicking Select Placeholder option
delete newQuery[check.name];
}
if (newQuery) {
const queryParams = new URLSearchParams(newQuery as { [key: string]: string }).toString();
Expand Down

0 comments on commit bca2a91

Please sign in to comment.