diff --git a/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx b/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx index 84de82f41a0..d2cd7d3cbd4 100644 --- a/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx +++ b/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx @@ -133,7 +133,8 @@ class ToolbarFilter extends React.Component {showToolbarItem && {children}} - {ReactDOM.createPortal(labelGroup, labelGroupContentRef.current.firstElementChild)} + {labelGroupContentRef?.current?.firstElementChild !== null && + ReactDOM.createPortal(labelGroup, labelGroupContentRef.current.firstElementChild)} ); }