Skip to content

Commit 2ddd1d1

Browse files
committed
feat: add check in vulnerability card for scan disabled
1 parent 19ea620 commit 2ddd1d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/Security/Vulnerabilities/Vulnerabilities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Vulnerabilities = ({
4747
}
4848
}, [scanResultResponse])
4949

50-
if (!isScanEnabled) {
50+
if (!isScanEnabled || !scanResultResponse?.result.isImageScanEnabled) {
5151
return (
5252
<div className="security-tab-empty">
5353
<p className="security-tab-empty__title">Scan is Disabled</p>

0 commit comments

Comments
 (0)