diff --git a/src/Filament/ChaosResource/ChaosTables.php b/src/Filament/ChaosResource/ChaosTables.php index 10c0c86..24c2f6e 100644 --- a/src/Filament/ChaosResource/ChaosTables.php +++ b/src/Filament/ChaosResource/ChaosTables.php @@ -85,10 +85,7 @@ public static function make( Tables\Actions\ActionGroup::make([ ...$actions, Tables\Actions\ViewAction::make() - /*->visible(function() use($resource){ - return false; - dd($resource::getPages(),static::resourceHasPage($resource, 'view')); - })*/, + ->visible(fn () => static::resourceHasPage($resource, 'view')), Tables\Actions\EditAction::make()->color('info')->visible(static::resourceHasPage($resource, 'edit')), Tables\Actions\DeleteAction::make() ->visible(