Skip to content

Commit

Permalink
do not render the tablist element if there are no sub menus (#54838)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 authored Jan 15, 2020
1 parent 5ba24b8 commit 6b35b97
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export const Tabs: FC<Props> = ({ tabId, mainTabId, disableLinks }) => {

const tabs = getTabs(mainTabId, disableLinks);

if (tabs.length === 0) return null;

return (
<EuiTabs size="s" className={tabId === 'settings' ? 'mlSubTabs' : ''}>
{tabs.map((tab: Tab) => {
Expand Down

0 comments on commit 6b35b97

Please sign in to comment.