Skip to content

Commit

Permalink
fix: filter the header menu with no name
Browse files Browse the repository at this point in the history
  • Loading branch information
solarjoker committed Sep 24, 2020
1 parent 495f5b6 commit d7a500e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hi-ui/classic-theme",
"version": "2.0.0",
"version": "2.0.1",
"description": "Classic theme for HIUI",
"main": "./es/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Classic.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ClassicLayout extends React.Component {
pathname: this.getMainMenuPath(m) || '',
component: m.component
}
})
}).filter((item) => item.content)
}
getSiderMenu = (menu, activeMainMenu) => {
const _activeMainMenu = menu.find((m) => m.id === activeMainMenu)
Expand Down

0 comments on commit d7a500e

Please sign in to comment.