Skip to content

Commit c6f9df9

Browse files
authored
fix(docs): drilldown infinite loop (#11271)
1 parent 6a5fb30 commit c6f9df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-core/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const DrilldownMenuDemo: React.FunctionComponent = () => {
5252
};
5353

5454
const setHeight = (menuId: string, height: number) => {
55-
if (!menuHeights[menuId] || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) {
55+
if (menuHeights[menuId] === undefined || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) {
5656
setMenuHeights({
5757
...menuHeights,
5858
[menuId]: height

0 commit comments

Comments
 (0)