fix(ui): show scan in Findings filter from View Findings action (#11997)

Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com>
This commit is contained in:
Pablo Fernandez Guerra (PFE)
2026-07-16 12:03:55 +02:00
committed by GitHub
parent 7d8c64d35b
commit 59b13778e2
3 changed files with 3 additions and 2 deletions
@@ -0,0 +1 @@
`Scan ID` filter on the Findings page now shows the active scan when opening findings from a scan's `View Findings` action
@@ -333,7 +333,7 @@ describe("ScanJobsRowActions", () => {
// Then
expect(pushMock).toHaveBeenCalledWith(
"/findings?filter[scan]=scan-1&filter[inserted_at]=2026-01-01&filter[status__in]=FAIL",
"/findings?filter[scan__in]=scan-1&filter[inserted_at]=2026-01-01&filter[status__in]=FAIL",
);
});
@@ -93,7 +93,7 @@ export function ScanJobsRowActions({
const openFindings = () => {
if (!isCompleted || !scanDate) return;
router.push(
`/findings?filter[scan]=${scan.id}&filter[inserted_at]=${scanDate}&filter[status__in]=FAIL`,
`/findings?filter[scan__in]=${scan.id}&filter[inserted_at]=${scanDate}&filter[status__in]=FAIL`,
);
};