Bring back import menu (#11007)

This commit is contained in:
Beto Dealmeida 2020-09-22 19:32:44 -07:00 committed by GitHub
parent 0d1f6119a6
commit d992c306c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

@ -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);
}
});