Skip to content

Commit

Permalink
fix(filters): fix dynamic filters (#6642)
Browse files Browse the repository at this point in the history
  • Loading branch information
paabloLC authored Jan 21, 2025
1 parent 3f29471 commit 67c6276
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ui/actions/findings/findings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ export const getFindings = async ({
if (sort) url.searchParams.append("sort", sort);

Object.entries(filters).forEach(([key, value]) => {
const excludedFilters = ["region__in", "service__in", "resource_type__in"];
if (
key !== "filter[search]" &&
!excludedFilters.some((filter) => key.includes(filter))
) {
url.searchParams.append(key, String(value));
}
url.searchParams.append(key, String(value));
});

try {
Expand Down

0 comments on commit 67c6276

Please sign in to comment.