From 74dbf029bf4085c3c33b952426692ca20eff84f2 Mon Sep 17 00:00:00 2001 From: Guilherme Leme Date: Wed, 2 Oct 2024 19:09:07 -0300 Subject: [PATCH] [lms-plugin-adaptation] - Code review --- .../imports/ui/components/common/menu/component.jsx | 3 ++- .../user-list-participants/user-actions/component.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/common/menu/component.jsx b/bigbluebutton-html5/imports/ui/components/common/menu/component.jsx index 32e59839e0..ab0f6b09b8 100644 --- a/bigbluebutton-html5/imports/ui/components/common/menu/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/common/menu/component.jsx @@ -172,8 +172,9 @@ class BBBMenu extends React.Component { {label} {a.iconRight ? : null} {(isTitle && titleActions?.length > 0) ? ( - titleActions.map((item) => ( + titleActions.map((item, index) => ( = ({ }); } }; - const t = userDropdownItems.filter( + const titleActions = userDropdownItems.filter( (item: PluginSdk.UserListDropdownInterface) => ( item?.type === UserListDropdownItemType.TITLE_ACTION), ); @@ -333,7 +333,7 @@ const UserActions: React.FC = ({ allowed: true, key: 'userName', label: user.name, - titleActions: t, + titleActions, isTitle: true, }, ...makeDropdownPluginItem(userDropdownItems.filter(