File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
apps/app/src/app/(app)/[orgId]/cloud-tests/components Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ export function ResultsView({
130130 ) }
131131
132132 { /* Filters and Run Scan Button */ }
133- { findings . length > 0 && (
134- < div className = "flex items-center justify-between" >
133+ < div className = "flex items-center justify-between" >
134+ { findings . length > 0 ? (
135135 < div className = "flex flex-wrap items-center gap-2" >
136136 < Select value = { selectedSeverity } onValueChange = { setSelectedSeverity } >
137137 < SelectTrigger className = "h-9 w-[160px] rounded-lg border-dashed" >
@@ -167,13 +167,15 @@ export function ResultsView({
167167 </ p >
168168 ) }
169169 </ div >
170-
171- < Button onClick = { onRunScan } disabled = { isScanning } className = "gap-2 rounded-lg" >
172- < RefreshCw className = "h-4 w-4" />
173- Run Scan
174- </ Button >
175- </ div >
176- ) }
170+ ) : (
171+ < div />
172+ ) }
173+
174+ < Button onClick = { onRunScan } disabled = { isScanning } className = "gap-2 rounded-lg" >
175+ < RefreshCw className = "h-4 w-4" />
176+ Run Scan
177+ </ Button >
178+ </ div >
177179
178180 { /* Results Table */ }
179181 { sortedFindings . length > 0 ? (
You can’t perform that action at this time.
0 commit comments