Skip to content

Commit

Permalink
Merge pull request #101 from jyrkidn/patch-1
Browse files Browse the repository at this point in the history
Make route getName optional
  • Loading branch information
bezhanSalleh authored Nov 21, 2024
2 parents 2ca0b9d + c9cf096 commit 8f91b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LanguageSwitch.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function isVisibleInsidePanels(): bool
public function isVisibleOutsidePanels(): bool
{
return (bool) ($this->evaluate($this->visibleOutsidePanels)
&& str(request()->route()->getName())->contains($this->outsidePanelRoutes)
&& str(request()->route()?->getName())->contains($this->outsidePanelRoutes)
&& $this->isCurrentPanelIncluded());
}

Expand Down

0 comments on commit 8f91b80

Please sign in to comment.