From ccfd25d864cb14f708a3c096fb0219cc3edd74be Mon Sep 17 00:00:00 2001 From: Connor Hudson Date: Wed, 20 Jun 2018 17:08:06 -0400 Subject: [PATCH] Use project ID from state instead of props --- src/views/preview/preview.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/preview/preview.jsx b/src/views/preview/preview.jsx index 3d481f873..73f60b4e5 100644 --- a/src/views/preview/preview.jsx +++ b/src/views/preview/preview.jsx @@ -77,7 +77,7 @@ class Preview extends React.Component { } 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.handlePermissions(); if (this.props.projectInfo.remix.parent !== null) {