diff --git a/components/menu/index.tsx b/components/menu/index.tsx index 4c8eb3eda1..2764642706 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -79,7 +79,7 @@ export default class Menu extends React.Component { } this.state = { - openKeys, + openKeys: openKeys || [], }; } componentWillReceiveProps(nextProps) {