We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e460492 commit ad4ce9cCopy full SHA for ad4ce9c
app/Http/Controllers/Ajax/PortSearchController.php
@@ -69,7 +69,7 @@ public function formatItem($port): array
69
'name' => $label,
70
'description' => $description,
71
'colours' => Color::forPortStatus($port),
72
- 'hostname' => $port->device->displayName(),
+ 'hostname' => $port->device?->displayName(),
73
'port_id' => $port->port_id,
74
];
75
}
0 commit comments