fix(v2): blog not showing metadata & missing asset

This commit is contained in:
endiliey 2019-03-04 16:24:39 +08:00
parent 039af9b213
commit 95b0cb942f
66 changed files with 1442 additions and 1 deletions

View file

@ -17,7 +17,7 @@ import styles from './styles.module.css';
class BlogPost extends React.Component {
renderPostHeader() {
const {metadata} = this.context;
const {metadata} = this.props;
if (!metadata) {
return null;
}