fixed load post

This commit is contained in:
u-e 2018-12-19 21:59:21 +03:00
parent b6b5f66ffd
commit 564c4a3628

View File

@ -25,10 +25,12 @@ class PostContainer extends Component {
// Component Life Cycle Functions
componentDidMount() {
const { navigation } = this.props;
const { content } = navigation.state && navigation.state.params;
const { content, permlink, author } = navigation.state && navigation.state.params;
if (content) {
this.setState({ post: content });
} else {
this._loadPost(author, permlink);
}
}