fix(overview): risk severity must show only fails (#9452)

Co-authored-by: Pepe Fagoaga <pepe@prowler.com>
This commit is contained in:
Prowler Bot
2025-12-04 10:40:58 +01:00
committed by GitHub
parent e093525b41
commit db22174f27
3 changed files with 8 additions and 2 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ All notable changes to the **Prowler UI** are documented in this file.
### 🐞 Fixed
- Models list in Lighthouse selector when default model is not set for provider [(9402)](https://github.com/prowler-cloud/prowler/pull/9402)
- Sort compliance cards by name from the compliance overview [(9422)](https://github.com/prowler-cloud/prowler/pull/9422)
- Models list in Lighthouse selector when default model is not set for provider [(#9402)](https://github.com/prowler-cloud/prowler/pull/9402)
- Sort compliance cards by name from the compliance overview [(#9422)](https://github.com/prowler-cloud/prowler/pull/9422)
- Risk severity chart must show only FAIL findings [(#9448)](https://github.com/prowler-cloud/prowler/pull/XXXX)
### Security
@@ -11,6 +11,8 @@ export const RiskSeverityChartDetailSSR = async ({
searchParams: SearchParamsProps | undefined | null;
}) => {
const filters = pickFilterParams(searchParams);
// Filter by FAIL findings
filters["filter[status]"] = "FAIL";
const [findingsBySeverity, providersData] = await Promise.all([
getFindingsBySeverity({ filters }),
@@ -84,6 +84,9 @@ export const RiskSeverityChart = ({
// Add exclude muted findings filter
params.set("filter[muted]", "false");
// Filter by FAIL findings
params.set("filter[status__in]", "FAIL");
// Navigate to findings page
router.push(`/findings?${params.toString()}`);
};