diff --git a/components/ReadNext/index.jsx b/components/ReadNext/index.jsx index 7270a80..d3baaa6 100644 --- a/components/ReadNext/index.jsx +++ b/components/ReadNext/index.jsx @@ -7,7 +7,8 @@ import './style.css' class ReadNext extends React.Component { render() { - const {pages, post} = this.props + const {post} = this.props + const {pages} = this.props.route const {readNext} = post let nextPost @@ -40,4 +41,4 @@ ReadNext.propTypes = { pages: React.PropTypes.array, } -export default ReadNext \ No newline at end of file +export default ReadNext