diff --git a/packages/admin/src/Support/Actions/Traits/UpdatesOrderStatus.php b/packages/admin/src/Support/Actions/Traits/UpdatesOrderStatus.php index 21ba952d6b..ea9cc39ef5 100644 --- a/packages/admin/src/Support/Actions/Traits/UpdatesOrderStatus.php +++ b/packages/admin/src/Support/Actions/Traits/UpdatesOrderStatus.php @@ -45,16 +45,16 @@ protected static function getEmailAddressesInput(): Forms\Components\CheckboxLis || ! ($record?->billingAddress?->contact_email && $record->shippingAddress->contact_email); })->afterStateHydrated(function (Order $record = null, Forms\Components\CheckboxList $component) { $emails = collect([ - $record?->billingAddress->contact_email, - $record?->shippingAddress->contact_email, + $record?->billingAddress?->contact_email, + $record?->shippingAddress?->contact_email, ])->filter()->unique()->map( fn ($email) => $email )->toArray(); $component->state($emails); })->options(function (Order $record = null) { return collect([ - $record?->billingAddress->contact_email, - $record?->shippingAddress->contact_email, + $record?->billingAddress?->contact_email, + $record?->shippingAddress?->contact_email, ])->filter()->unique()->mapWithKeys( fn ($email) => [$email => $email] )->toArray();