Skip to content

Commit

Permalink
[Fix] Return empty array when $record's to, cc or bcc is empty (#18) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvankekerix authored Jan 20, 2025
1 parent e730094 commit 64018f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/MailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ public static function table(Table $table): Table
->form(self::getResendForm())
->fillForm(function (Mail $record) {
return [
'to' => array_keys($record->to),
'cc' => array_keys($record->cc),
'bcc' => array_keys($record->bcc),
'to' => array_keys($record->to ?: []),
'cc' => array_keys($record->cc ?: []),
'bcc' => array_keys($record->bcc ?: []),
];
})
->action(function (Mail $record, array $data) {
Expand Down

0 comments on commit 64018f5

Please sign in to comment.