mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
fix: Hidden actions in schemas (#17892)
This commit is contained in:
@@ -320,8 +320,8 @@ trait HasComponents
|
||||
$components = array_filter(
|
||||
$allComponents,
|
||||
function (Component | Action | ActionGroup $component) use ($withActions, $withHidden): bool {
|
||||
if (($component instanceof Action) || ($component instanceof ActionGroup)) {
|
||||
return $withActions;
|
||||
if ((($component instanceof Action) || ($component instanceof ActionGroup)) && (! $withActions)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $withHidden || ! $component->isHidden();
|
||||
|
||||
Reference in New Issue
Block a user