Skip to content

Commit

Permalink
fix(antdsite): get path,modifiedTime,avatarList from correct object.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyi7099 committed Jul 30, 2019
1 parent df05e57 commit 1a924a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/antdsite/src/components/content/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export default class Article extends React.PureComponent<ArticleProps> {
themeConfig: { lastUpdated, editLinkText, repo, docsRepo, docsBranch, showAvatarList },
},
} = this.context;
const { subtitle, path, modifiedTime, avatarList } = currentPageInfo.frontmatter;

const { subtitle } = currentPageInfo.frontmatter;
const { path, modifiedTime, avatarList } = currentPageInfo.fields;

const noAvatar = !showAvatarList || !avatarList || !avatarList.length;

Expand Down

0 comments on commit 1a924a3

Please sign in to comment.