Use project ID from state instead of props

This commit is contained in:
Connor Hudson 2018-06-20 17:08:06 -04:00
parent 456e99f1be
commit ccfd25d864

View file

@ -77,7 +77,7 @@ class Preview extends React.Component {
} }
if (this.props.projectInfo.id !== prevProps.projectInfo.id) { if (this.props.projectInfo.id !== prevProps.projectInfo.id) {
this.getExtensions(this.props.projectInfo.id.toString()); this.getExtensions(this.state.projectId);
this.initCounts(this.props.projectInfo.stats.favorites, this.props.projectInfo.stats.loves); this.initCounts(this.props.projectInfo.stats.favorites, this.props.projectInfo.stats.loves);
this.handlePermissions(); this.handlePermissions();
if (this.props.projectInfo.remix.parent !== null) { if (this.props.projectInfo.remix.parent !== null) {