We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5fb30 commit c6f9df9Copy full SHA for c6f9df9
packages/react-core/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx
@@ -52,7 +52,7 @@ export const DrilldownMenuDemo: React.FunctionComponent = () => {
52
};
53
54
const setHeight = (menuId: string, height: number) => {
55
- if (!menuHeights[menuId] || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) {
+ if (menuHeights[menuId] === undefined || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) {
56
setMenuHeights({
57
...menuHeights,
58
[menuId]: height
0 commit comments