diff --git a/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureCloudScanResults.tsx b/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureCloudScanResults.tsx index 622713c671..999101cfc8 100644 --- a/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureCloudScanResults.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureCloudScanResults.tsx @@ -300,7 +300,12 @@ const useScanResults = () => { sortBy: 'status', descending: true, }, - benchmarkTypes: searchParams.getAll('benchmarkType'), + benchmarkTypes: searchParams.getAll('benchmarkType').map((type) => { + if (type.toLowerCase() === 'soc2') { + type = 'soc_2'; + } + return type.toLowerCase(); + }), visibility: searchParams.getAll('visibility'), status: searchParams.getAll('status'), services: searchParams.getAll('services'), diff --git a/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureScanResults.tsx b/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureScanResults.tsx index 4ad7a9f803..4ecc5332a1 100644 --- a/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureScanResults.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/postures/pages/PostureScanResults.tsx @@ -295,12 +295,7 @@ const useScanResults = () => { sortBy: 'status', descending: true, }, - benchmarkTypes: searchParams.getAll('benchmarkType').map((type) => { - if (type.toLowerCase() === 'soc2') { - type = 'soc_2'; - } - return type.toLowerCase(); - }), + benchmarkTypes: searchParams.getAll('benchmarkType'), visibility: searchParams.getAll('visibility'), status: searchParams.getAll('status'), testNumber: searchParams.getAll('testNumber'),