Skip to content

Commit

Permalink
Update HasTabs.php
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Sep 8, 2022
1 parent b1a48bf commit 6c9fc60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/HasTabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function resolvePanelsFromFields(NovaRequest $request, FieldCollection
return $panel->component === 'relationship-panel' && $panel->meta['fields'][0]->assignedPanel instanceof Tabs;
});

$panels->transform(function($panel, $key) use($relationshipUnderTabs) {
$panels->transform(function($panel, $key) use ($relationshipUnderTabs) {

if ($panel->component === 'tabs') {

Expand All @@ -76,7 +76,7 @@ protected function resolvePanelsFromFields(NovaRequest $request, FieldCollection
});

return $this->panelsWithDefaultLabel(
$panels->merge($relationPanels),
$panels,
$defaultFields->values(),
$label
);
Expand Down

0 comments on commit 6c9fc60

Please sign in to comment.