diff --git a/src/lib/components/tabsv2/Tabsv2.component.tsx b/src/lib/components/tabsv2/Tabsv2.component.tsx index 853f68ee70..cf7c99f6c4 100644 --- a/src/lib/components/tabsv2/Tabsv2.component.tsx +++ b/src/lib/components/tabsv2/Tabsv2.component.tsx @@ -219,34 +219,33 @@ function Tabs({ /> )} - - {filteredTabsChildren.map((tab, index) => ( - + + {filteredTabsChildren.map((tab, index) => ( + + {!tab.props.query || + (tab.props.query && matchQuery(tab.props.query)) ? ( - {!tab.props.query || - (tab.props.query && matchQuery(tab.props.query)) ? ( - tab.props.children - ) : ( - <> - )} + {tab.props.children} - - ))} - + ) : ( + <> + )} + + ))} );