From c4685cb1686d1f553b07a58ea8fc19d285c24680 Mon Sep 17 00:00:00 2001 From: Florian Thoma Date: Tue, 19 Nov 2024 11:29:49 +1100 Subject: [PATCH] skip adding fluent actions menu if it already exists --- src/Extension/Traits/FluentAdminTrait.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Extension/Traits/FluentAdminTrait.php b/src/Extension/Traits/FluentAdminTrait.php index 63da66a3..35fea09a 100644 --- a/src/Extension/Traits/FluentAdminTrait.php +++ b/src/Extension/Traits/FluentAdminTrait.php @@ -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'