From a8cb41320e066d0c6c2b87db69c7c217aace1011 Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Thu, 18 Jul 2024 06:35:26 +0200 Subject: [PATCH] fix: Update shipping and billing address check --- packages/admin/src/Livewire/Pages/Order/Detail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]));