From d992c306c2255b796f676d48dd1f61a622fac7b0 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 22 Sep 2020 19:32:44 -0700 Subject: [PATCH] Bring back import menu (#11007) --- superset-frontend/src/components/Menu/Menu.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/superset-frontend/src/components/Menu/Menu.tsx b/superset-frontend/src/components/Menu/Menu.tsx index 6cc1c837e0..73f6d8d73b 100644 --- a/superset-frontend/src/components/Menu/Menu.tsx +++ b/superset-frontend/src/components/Menu/Menu.tsx @@ -277,11 +277,6 @@ export default function MenuWrapper({ data }: MenuProps) { Manage: true, }; - // Menu items that should be ignored - const ignore = { - 'Import Dashboards': true, - }; - // Cycle through menu.menu to build out cleanedMenu and settings const cleanedMenu: MenuObjectProps[] = []; const settings: MenuObjectProps[] = []; @@ -301,10 +296,7 @@ export default function MenuWrapper({ data }: MenuProps) { item.childs.forEach((child: MenuObjectChildProps | string) => { if (typeof child === 'string') { children.push(child); - } else if ( - (child as MenuObjectChildProps).label && - !ignore.hasOwnProperty(child.label) - ) { + } else if ((child as MenuObjectChildProps).label) { children.push(child); } });