fix: fix typo error

This commit is contained in:
Pablo Lara
2024-11-20 15:45:32 +01:00
parent 7fd53c1bc3
commit 47d74a7742
3 changed files with 13 additions and 7 deletions
+12 -6
View File
@@ -17,12 +17,18 @@ export default async function Compliance({
searchParams: SearchParamsProps;
}) {
const scansData = await getScans({});
const scanList = scansData?.data.map((scan: any) => ({
id: scan.id,
name: scan.attributes.name || "Unnamed Scan",
state: scan.attributes.state,
progress: scan.attributes.progress,
}));
const scanList = scansData?.data
.filter(
(scan: any) =>
scan.attributes.state === "completed" &&
scan.attributes.progress === 100,
)
.map((scan: any) => ({
id: scan.id,
name: scan.attributes.name || "Unnamed Scan",
state: scan.attributes.state,
progress: scan.attributes.progress,
}));
const selectedScanId = searchParams.scanId || scanList[0]?.id;
+1 -1
View File
@@ -1,5 +1,5 @@
export * from "./custo-checkbox-muted-findings";
export * from "./custom-account-selection";
export * from "./custom-checkbox-muted-findings";
export * from "./custom-date-picker";
export * from "./custom-provider-inputs";
export * from "./custom-region-selection";