Skip to content

Commit

Permalink
[5.x] Fix filament errors (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher authored Oct 27, 2023
1 parent 037c331 commit 6b371b2
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 6b371b2

Please sign in to comment.