diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index 7bb8b4e38f8c8b5fd58c473b5c8296d824b48366..b6250a2b0ae3612616693d1218d0fb7632c2474b 100644 --- a/src/components/PageHeader/index.js +++ b/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 (