File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
frontend/src/app/pages/DashBoardPage/components/WidgetComponents Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ export type widgetActionType = typeof widgetActionTypes[number];
4747export const widgetViewActionMap : Record < WidgetType , widgetActionType [ ] > = {
4848 chart : [ 'refresh' , 'fullScreen' ] ,
4949 media : [ 'fullScreen' ] ,
50- container : [ 'info' ] ,
51- controller : [ 'refresh' ] ,
50+ container : [ ] ,
51+ controller : [ ] ,
5252 query : [ ] ,
5353 reset : [ ] ,
5454} ;
You can’t perform that action at this time.
0 commit comments