mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Use project ID from state instead of props
This commit is contained in:
parent
456e99f1be
commit
ccfd25d864
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue