Use count instead of filled

This commit is contained in:
Zep Fietje
2023-05-17 00:38:13 +02:00
parent 2abc7699c5
commit bc611379a7
@@ -61,7 +61,7 @@
foreach ($actions as $action) {
if ($action instanceof \Filament\Actions\ActionGroup && (! $action->hasDropdown())) {
if (filled($actionList)) {
if (count($actionList)) {
$actionLists[] = $actionList;
$actionList = [];
}
@@ -72,7 +72,7 @@
}
}
if (filled($actionList)) {
if (count($actionList)) {
$actionLists[] = $actionList;
}
@endphp