Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pschilly committed Nov 25, 2024
1 parent 7d4f506 commit f152c85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Filament/Resources/TypeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use TomatoPHP\FilamentTypes\Filament\Resources\TypeResource\Form\TypeForm;
use TomatoPHP\FilamentTypes\Filament\Resources\TypeResource\Table\TypeTable;
use TomatoPHP\FilamentTypes\Models\Type;
use Filament\Facades\Filament;

class TypeResource extends Resource
{
Expand Down Expand Up @@ -59,6 +60,8 @@ public static function shouldRegisterNavigation(): bool
foreach (config('filament-types.panel_navigation', true) as $key => $val) {
if (Filament::getCurrentPanel()->getId() === $key) {
return $val;
} else {
return FALSE;
}
}
} else {
Expand Down

0 comments on commit f152c85

Please sign in to comment.