Skip to content

Commit

Permalink
skip adding fluent actions menu if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
xini committed Nov 19, 2024
1 parent 208b365 commit c4685cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Extension/Traits/FluentAdminTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ protected function updateFluentActions(
return;
}

// check if actions menu already exist
if ($actions->fieldByName('FluentMenu')) {
return;
}

// Build root tabset that makes up the menu
$rootTabSet = TabSet::create('FluentMenu')->setTemplate(
'FluentAdminTabSet'
Expand Down

0 comments on commit c4685cb

Please sign in to comment.