Commit b27ab27d authored by afc163's avatar afc163

Highlight first tab defaultly

parent 65dc73e3
...@@ -97,7 +97,7 @@ export default class PageHeader extends PureComponent { ...@@ -97,7 +97,7 @@ export default class PageHeader extends PureComponent {
breadcrumb = null; breadcrumb = null;
} }
const tabDefaultValue = tabList && tabList.filter(item => item.default)[0]; const tabDefaultValue = tabList && (tabList.filter(item => item.default)[0] || tabList[0]);
return ( return (
<div className={clsString}> <div className={clsString}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment