Skip to content

Commit

Permalink
fix(context): pass context in super (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 authored Oct 21, 2016
1 parent 3a1132d commit 01694d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/LazyCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import autoBind from 'react-auto-bind'
import shallowCompare from 'react-addons-shallow-compare'

export default class LazyCard extends Component {
constructor (props) {
super(props)
constructor (props, context) {
super(props, context)
this.state = {
image: props.lazyLoad ? props.defaultImage : (props.defaultImage || props.image)
}
Expand Down

0 comments on commit 01694d6

Please sign in to comment.