diff --git a/packages/admin/src/Livewire/Pages/Order/Detail.php b/packages/admin/src/Livewire/Pages/Order/Detail.php index 7043a4955..1efe700df 100755 --- a/packages/admin/src/Livewire/Pages/Order/Detail.php +++ b/packages/admin/src/Livewire/Pages/Order/Detail.php @@ -140,8 +140,8 @@ public function render(): View ->where('id', '<', $this->order->id) ->latest('id') ->first(), - 'billingAddress' => $this->order->billingAddress->load('customer'), - 'shippingAddress' => $this->order->shippingAddress->load('customer'), + 'billingAddress' => $this->order->billingAddress?->load('customer'), + 'shippingAddress' => $this->order->shippingAddress?->load('customer'), 'shippingOption' => $this->order->shippingOption, ]) ->title(__('shopper::pages/orders.show_title', ['number' => $this->order->number]));