mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-29 14:54:30 +00:00
feat: clean all filters button is removing now the sort param
This commit is contained in:
1 file changed
+1
-1
@@ -23,7 +23,7 @@ export const FilterControls: React.FC<FilterControlsProps> = ({
|
||||
const clearAllFilters = useCallback(() => {
|
||||
const params = new URLSearchParams(searchParams.toString());
|
||||
Array.from(params.keys()).forEach((key) => {
|
||||
if (key.startsWith("filter[")) {
|
||||
if (key.startsWith("filter[") || key === "sort") {
|
||||
params.delete(key);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user