From 2aa2fb03ec1ce56a4149a9181fc260b1496a6c83 Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Fri, 27 Oct 2023 18:52:53 +0100 Subject: [PATCH] fix: filament errors --- 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(), ]) : ''; }); }