Skip to content

Commit

Permalink
fix: filament errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Oct 27, 2023
1 parent 037c331 commit 2aa2fb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Filament/SocialstreamPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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(),
]) : '';
});
}
Expand Down

0 comments on commit 2aa2fb0

Please sign in to comment.