Commit 3e7bb349 authored by Matthew Taylor's avatar Matthew Taylor

match props to rows, rather than object

this was not detecting row updates well on re-render
parent 797afb6d
...@@ -160,12 +160,12 @@ var Splash = injectIntl(React.createClass({ ...@@ -160,12 +160,12 @@ var Splash = injectIntl(React.createClass({
hideEmailConfirmationModal={this.hideEmailConfirmationModal} hideEmailConfirmationModal={this.hideEmailConfirmationModal}
shouldShowWelcome={showWelcome} shouldShowWelcome={showWelcome}
projectCount={this.state.projectCount} projectCount={this.state.projectCount}
activity={this.props.activity.rows} activity={this.props.activity}
news={this.state.news} news={this.state.news}
sharedByFollowing={this.props.shared.rows} sharedByFollowing={this.props.shared}
lovedByFollowing={this.props.loved.rows} lovedByFollowing={this.props.loved}
inStudiosFollowing={this.props.studios.rows} inStudiosFollowing={this.props.studios}
featuredGlobal={this.props.featured.rows} featuredGlobal={this.props.featured}
refreshCacheStatus={homepageRefreshStatus} refreshCacheStatus={homepageRefreshStatus}
/> />
); );
...@@ -179,11 +179,11 @@ var mapStateToProps = function (state) { ...@@ -179,11 +179,11 @@ var mapStateToProps = function (state) {
flags: state.session.session.flags, flags: state.session.session.flags,
isEducator: state.permissions.educator, isEducator: state.permissions.educator,
isAdmin: state.permissions.admin, isAdmin: state.permissions.admin,
activity: state.splash.activity, activity: state.splash.activity.rows,
featured: state.splash.featured, featured: state.splash.featured.rows,
shared: state.splash.shared, shared: state.splash.shared.rows,
loved: state.splash.loved, loved: state.splash.loved.rows,
studios: state.splash.studios studios: state.splash.studios.rows
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment