chore: auto refresh if the state is also available (#7195)

This commit is contained in:
Pablo Lara
2025-03-12 09:33:24 +01:00
committed by GitHub
parent e1d1c6d154
commit 5d1abb3689
+4 -1
View File
@@ -50,8 +50,11 @@ export default async function Scans({
// Get scans data to check for executing scans
const scansData = await getScansByState();
const hasExecutingScan = scansData?.data?.some(
(scan: ScanProps) => scan.attributes.state === "executing",
(scan: ScanProps) =>
scan.attributes.state === "executing" ||
scan.attributes.state === "available",
);
return (