diff --git a/app/Http/Livewire/Controllers/LtNewPending.php b/app/Http/Livewire/Controllers/LtNewPending.php index 33aaf50..53bba2a 100644 --- a/app/Http/Livewire/Controllers/LtNewPending.php +++ b/app/Http/Livewire/Controllers/LtNewPending.php @@ -50,6 +50,7 @@ public function columns(): array Column::make("Track") ->label(function ($row, Column $column) { $msg = RclMessage::whereId($row->id)->first(); + if ($msg == null) return "N/A"; return $msg->track ? $msg->track->identifier : 'RR'; }), Column::make("Flight level", "flight_level"), diff --git a/app/Http/Livewire/Controllers/LtNewProcessed.php b/app/Http/Livewire/Controllers/LtNewProcessed.php index 10f5f40..17065b0 100644 --- a/app/Http/Livewire/Controllers/LtNewProcessed.php +++ b/app/Http/Livewire/Controllers/LtNewProcessed.php @@ -48,6 +48,7 @@ public function columns(): array Column::make("Track") ->label(function ($row, Column $column) { $msg = ClxMessage::whereId($row->id)->first(); + if ($msg == null) return "N/A"; return $msg->track ? $msg->track->identifier : 'RR'; }), Column::make("Flight level", "flight_level"),