Skip to content

Commit e5877af

Browse files
committed
fix: enhance target validation in alert label retrieval
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 1a226a5 commit e5877af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/app/data-management/adversary-management/adversary-alerts-graph/adversary-alerts-graph.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export class AdversaryAlertsGraphComponent implements OnChanges {
311311
}
312312

313313
private getLabel(alert: UtmAlertType) {
314-
if (alert.target) {
314+
if (alert.target && Object.keys(alert.target).length > 0) {
315315
const target: any = alert.target as Side;
316316
if (target.ip) {
317317
return target.ip;

0 commit comments

Comments
 (0)