diff --git a/src/components/SiderMenu/SiderMenu.js b/src/components/SiderMenu/SiderMenu.js
index 5d26bfd89a076030d70c63a2dbe10124444256cf..8c2f77d1177f92427c83e6abf64bfd73a31f4cf2 100644
--- a/src/components/SiderMenu/SiderMenu.js
+++ b/src/components/SiderMenu/SiderMenu.js
@@ -13,18 +13,19 @@ const { SubMenu } = Menu;
// icon: 'http://demo.com/icon.png',
// icon: ,
const getIcon = icon => {
- if (typeof icon === 'string' && icon.indexOf('http') === 0) {
- return ;
- }
if (typeof icon === 'string') {
+ if (icon.indexOf('http') === 0) {
+ return ;
+ }
return ;
}
+
return icon;
};
/**
* Recursively flatten the data
- * [{path:string},{path:string}] => {path,path2}
+ * [{path:string},{path:string}] => [path,path2]
* @param menu
*/
export const getFlatMenuKeys = menu =>