Skip to content

Commit 38c933b

Browse files
committed
Fix
1 parent 37e86a7 commit 38c933b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Resources/SuppressionResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public static function table(Table $table): Table
125125
Tables\Actions\Action::make('unsuppress')
126126
->label(__('Unsuppress'))
127127
->action(function (MailEvent $record) {
128-
event(new MailUnsuppressed(is_array($record->to) ? key($record->to) : $record->to, $record->mail->mailer == 'smtp' && filled($record->mail->transport) ? $record->mail->transport : $record->mail->mailer, $record->mail->stream_id ?? null));
128+
event(new MailUnsuppressed(is_array($record->to) ? key($record->to) : key(json_decode($record->to, true)), $record->mail->mailer == 'smtp' && filled($record->mail->transport) ? $record->mail->transport : $record->mail->mailer, $record->mail->stream_id ?? null));
129129
})
130130
->visible(fn($record) => Provider::tryFrom($record->mail->mailer == 'smtp' && filled($record->mail->transport) ? $record->mail->transport : $record->mail->mailer)),
131131

0 commit comments

Comments
 (0)