Skip to content

Commit

Permalink
Merge pull request #908 from xini/fix-double-action-insert
Browse files Browse the repository at this point in the history
skip adding fluent actions menu if it already exists
  • Loading branch information
tractorcow authored Nov 19, 2024
2 parents 208b365 + c4685cb commit fb2c518
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 fb2c518

Please sign in to comment.