diff --git a/lib/components/src/tabs/tabs.tsx b/lib/components/src/tabs/tabs.tsx index 7c132f3fc954..c238cc8279f1 100644 --- a/lib/components/src/tabs/tabs.tsx +++ b/lib/components/src/tabs/tabs.tsx @@ -155,6 +155,7 @@ export interface TabsProps { export const Tabs: FunctionComponent = memo( ({ children, selected, actions, absolute, bordered, tools, backgroundColor, id: htmlId }) => { const list = childrenToList(children, selected); + return list.length ? ( diff --git a/lib/ui/src/components/preview/toolbar.tsx b/lib/ui/src/components/preview/toolbar.tsx index ffff767bc01d..5783208a48c2 100644 --- a/lib/ui/src/components/preview/toolbar.tsx +++ b/lib/ui/src/components/preview/toolbar.tsx @@ -182,8 +182,7 @@ export function filterTools( path: State['path']; } ) { - const tabsTool = createTabsTool(tabs); - const toolsLeft = [tabsTool, ...tools]; + const toolsLeft = [createTabsTool(tabs), ...tools]; const toolsRight = [...toolsExtra]; const filter = (item: Partial) =>