mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-12 23:11:52 +01:00
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:
parent
f869ef4946
commit
a77594f1ba
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user