Skip to content

Commit

Permalink
Highlight first tab defaultly
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 31, 2017
1 parent 65dc73e commit b27ab27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PageHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down

0 comments on commit b27ab27

Please sign in to comment.