mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 10:40:09 +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:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							f869ef4946
						
					
				
				
					commit
					a77594f1ba
				
			@@ -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
 | 
			
		||||
export default ReadNext
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user