Skip to content

Commit

Permalink
Fixed re-send e-mail action when there's no attachments and toggle bu…
Browse files Browse the repository at this point in the history
…tton is disable
  • Loading branch information
marcogermani87 committed May 19, 2024
1 parent ee936bf commit 56ac224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filament/Resources/EmailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public static function table(Table $table): Table
Mail::to($data['to'])
->cc($data['cc'])
->bcc($data['bcc'])
->send(new ResendMail($record, $data['attachments']));
->send(new ResendMail($record, $data['attachments'] ?? false));
Notification::make()
->title(__('filament-email::filament-email.resend_email_success'))
->success()
Expand Down

0 comments on commit 56ac224

Please sign in to comment.