From fb273e3797cdf7581fda7433b6cef7d162aa7fc6 Mon Sep 17 00:00:00 2001 From: Liesel Downes Date: Sat, 19 Oct 2024 20:46:30 +1030 Subject: [PATCH] Hotfix --- app/Http/Livewire/Controllers/LtNewPending.php | 1 + app/Http/Livewire/Controllers/LtNewProcessed.php | 1 + 2 files changed, 2 insertions(+) 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"),