Skip to content

Commit

Permalink
Update FilamentManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Dec 19, 2024
1 parent 2b729d4 commit f8e3c18
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/panels/src/FilamentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ class FilamentManager

protected ?Model $tenant = null;

public function __construct()
{
// Resolve the panel registry to set the current panel
// as the default, which uses a `resolving()` callback.
app()->resolved(PanelRegistry::class) || app(PanelRegistry::class);
}

public function auth(): Guard
{
return $this->getCurrentOrDefaultPanel()->auth();
Expand Down Expand Up @@ -113,7 +106,7 @@ public function getCollapsedSidebarWidth(): string
*/
public function getCurrentOrDefaultPanel(): ?Panel
{
return $this->getCurrentPanel() ?? app(PanelRegistry::class)->getDefault();
return $this->getCurrentPanel() ?? $this->getDefaultPanel();
}

public function getCurrentPanel(): ?Panel
Expand Down

0 comments on commit f8e3c18

Please sign in to comment.