mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 22:07:46 +03:00
fixed load post
This commit is contained in:
parent
b6b5f66ffd
commit
564c4a3628
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user