diff --git a/packages/react-core/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx b/packages/react-core/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx index 7347dc24dbd..1152640e6d7 100644 --- a/packages/react-core/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx +++ b/packages/react-core/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx @@ -52,7 +52,7 @@ export const DrilldownMenuDemo: React.FunctionComponent = () => { }; const setHeight = (menuId: string, height: number) => { - if (!menuHeights[menuId] || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) { + if (menuHeights[menuId] === undefined || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) { setMenuHeights({ ...menuHeights, [menuId]: height