Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddell committed Sep 19, 2019
1 parent e53528a commit f332230
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/entity/entity-flatlist.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ class <%= props.name %>EntityScreen extends React.PureComponent {
})
}


componentDidUpdate(prevProps, prevState){
if (this.props.<%= camelCase(props.pluralName) %> && prevProps.<%= camelCase(props.pluralName) %> !== this.props.<%= camelCase(props.pluralName) %>) {
this.setState({
done: newProps.<%= camelCase(props.pluralName) %>.length < this.state.size,
dataObjects: [...this.state.dataObjects, ...newProps.<%= camelCase(props.pluralName) %>]
done: this.props.<%= camelCase(props.pluralName) %>.length < this.state.size,
dataObjects: [...this.state.dataObjects, ...this.props.<%= camelCase(props.pluralName) %>]
})
}
}
Expand Down

0 comments on commit f332230

Please sign in to comment.