From 6b371b27637e4a78dccd6ee2a4d8bf557b7b768f Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Fri, 27 Oct 2023 19:00:34 +0100 Subject: [PATCH] [5.x] Fix filament errors (#308) --- src/Filament/SocialstreamPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Filament/SocialstreamPlugin.php b/src/Filament/SocialstreamPlugin.php index f9326378..58a2fcc8 100644 --- a/src/Filament/SocialstreamPlugin.php +++ b/src/Filament/SocialstreamPlugin.php @@ -5,6 +5,7 @@ use Filament\Contracts\Plugin; use Filament\Panel; use Illuminate\Support\Facades\Config; +use Illuminate\Support\ViewErrorBag; use JoelButcher\Socialstream\Features; use JoelButcher\Socialstream\Socialstream; @@ -24,7 +25,7 @@ public function register(Panel $panel): void $panel->renderHook('panels::auth.login.form.after', function () { return Socialstream::show() ? view(config('socialstream.component', 'socialstream::components.socialstream'), [ - 'errors' => session('errors')?->get('socialstream') ?? [], + 'errors' => session('errors') ?? new ViewErrorBag(), ]) : ''; }); }