Skip to content

Commit 7d6e3f2

Browse files
committed
refactor: widget Dropdown
1 parent 9039e77 commit 7d6e3f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/app/pages/DashBoardPage/components/WidgetComponents/WidgetActionDropdown.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ export const WidgetActionDropdown: React.FC<WidgetActionDropdownProps> = memo(
148148

149149
return <Menu onClick={menuClick}>{menuItems}</Menu>;
150150
}, [actionList, menuClick]);
151+
if (actionList.length === 0) {
152+
return null;
153+
}
151154
return (
152155
<Dropdown
153156
className="widget-tool-dropdown"

0 commit comments

Comments
 (0)