fix: Hidden actions in schemas (#17892)

This commit is contained in:
Dan Harrin
2025-09-21 22:05:01 +01:00
committed by GitHub
parent e35d00c14d
commit 01779825f0
@@ -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();