Explorar o código

Highlight first tab defaultly

afc163 %!s(int64=8) %!d(string=hai) anos
pai
achega
b27ab27d69
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/PageHeader/index.js

+ 1 - 1
src/components/PageHeader/index.js

@@ -97,7 +97,7 @@ export default class PageHeader extends PureComponent {
       breadcrumb = null;
     }
 
-    const tabDefaultValue = tabList && tabList.filter(item => item.default)[0];
+    const tabDefaultValue = tabList && (tabList.filter(item => item.default)[0] || tabList[0]);
 
     return (
       <div className={clsString}>