Skip to content

Commit 311eb2a

Browse files
committed
handle empty state for kubernetes manifest scan
1 parent aef1a50 commit 311eb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/Security/SecurityModal/config/KubernetesManifest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const getCompletedEmptyState = (
7878
}
7979

8080
/* NOTE: if we are in detailView & it has data, no need for EmptyState */
81-
if ((data[subCategory]?.list && !detailViewData) || detailViewData?.rows) {
81+
if ((data[subCategory]?.list?.length && !detailViewData) || detailViewData?.rows) {
8282
return null
8383
}
8484

0 commit comments

Comments
 (0)