From 1cdf566259b23c664e614720232159be26ecdc69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 4 Oct 2018 16:03:51 +0800 Subject: [PATCH] fix this.flatMenuKeys error --- src/components/SiderMenu/BaseMenu.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index 7048d1dd..3fd4abf3 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 -- GitLab