Fixes not rendering of ReadNext component

The component didn't render because pages were undefined.
I found that they are stored inside the route object.
This fixed it for me.
This commit is contained in:
Simon Reinsperger 2016-09-16 12:14:38 +02:00 committed by GitHub
parent f869ef4946
commit a77594f1ba

View File

@ -7,7 +7,8 @@ import './style.css'
class ReadNext extends React.Component { class ReadNext extends React.Component {
render() { render() {
const {pages, post} = this.props const {post} = this.props
const {pages} = this.props.route
const {readNext} = post const {readNext} = post
let nextPost let nextPost