diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index 7048d1dde1965c09054440d1c11ff8451b1ce921..3fd4abf36b9ebfb1b9c3ad3f37e4ba21cf978bda 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -72,9 +72,7 @@ export default class BaseMenu extends PureComponent { // Get the currently selected menu getSelectedMenuKeys = pathname => - urlToList(pathname).map(function(itemPath) { - return getMenuMatches(this.flatMenuKeys, itemPath).pop(); - }); + urlToList(pathname).map(itemPath => getMenuMatches(this.flatMenuKeys, itemPath).pop()); /** * get SubMenu or Item