diff --git a/packages/dashboard-frontend/src/Layout/Navigation/RecentList.tsx b/packages/dashboard-frontend/src/Layout/Navigation/RecentList.tsx index 3715e09d6c..04d119f39b 100644 --- a/packages/dashboard-frontend/src/Layout/Navigation/RecentList.tsx +++ b/packages/dashboard-frontend/src/Layout/Navigation/RecentList.tsx @@ -10,7 +10,7 @@ * Red Hat, Inc. - initial API and implementation */ -import { NavGroup, NavList } from '@patternfly/react-core'; +import { NavGroup } from '@patternfly/react-core'; import React from 'react'; import { NavigationRecentItem } from '@/Layout/Navigation/RecentItem'; @@ -51,11 +51,9 @@ function NavigationRecentList(props: { ); }); return ( - - - {recentWorkspaceItems} - - + + {recentWorkspaceItems} + ); } NavigationRecentList.displayName = 'NavigationRecentListComponent'; diff --git a/packages/dashboard-frontend/src/components/AppAlertGroup/index.tsx b/packages/dashboard-frontend/src/components/AppAlertGroup/index.tsx index d2aacbdaf7..4ec27940c3 100644 --- a/packages/dashboard-frontend/src/components/AppAlertGroup/index.tsx +++ b/packages/dashboard-frontend/src/components/AppAlertGroup/index.tsx @@ -92,7 +92,11 @@ class AppAlertGroup extends React.PureComponent { } public render(): React.ReactElement { - return {this.state.alerts.map(alert => this.getAlert(alert))}; + const { alerts } = this.state; + if (alerts.length === 0) { + return <>; + } + return {alerts.map(alert => this.getAlert(alert))}; } }