Skip to content

Commit

Permalink
Merge pull request #288 from unoxautomat/fix-tabs-with-action-log
Browse files Browse the repository at this point in the history
Filter Actions from $panels fix #284
  • Loading branch information
marcfil authored Sep 9, 2024
2 parents f8fea2a + 5b1965b commit 6302598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Traits/HasTabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ protected function resolvePanelsFromFields(NovaRequest $request, FieldCollection
return ! isset($field->panel) || blank($field->panel);
});

$panels = $fieldsWithPanels->groupBy(function ($field) {
$panels = $fieldsWithPanels->filter(function($item) {
return gettype($item->panel) === 'string';
})->groupBy(function ($field) {
return $field->panel;
})->transform(function ($fields, $name) {
if ($fields[0]->assignedPanel instanceof Tabs) {
Expand Down

0 comments on commit 6302598

Please sign in to comment.