From 0973a528d4be83dc01868f3d672f341251301349 Mon Sep 17 00:00:00 2001
From: Ray Schamp <ray@scratch.mit.edu>
Date: Wed, 11 Jul 2018 15:28:49 -0400
Subject: [PATCH] Use explicit projectId prop

/ht @gnarf
---
 src/playground/player.jsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/playground/player.jsx b/src/playground/player.jsx
index dc9c3862e..b20bafc52 100644
--- a/src/playground/player.jsx
+++ b/src/playground/player.jsx
@@ -18,7 +18,7 @@ if (process.env.NODE_ENV === 'production' && typeof window === 'object') {
 
 import styles from './player.css';
 
-const Player = ({isPlayerOnly, onSeeInside, ...props}) => (
+const Player = ({isPlayerOnly, onSeeInside, projectId}) => (
     <Box
         className={classNames({
             [styles.stageOnly]: isPlayerOnly
@@ -28,14 +28,15 @@ const Player = ({isPlayerOnly, onSeeInside, ...props}) => (
         <GUI
             enableCommunity
             isPlayerOnly={isPlayerOnly}
-            {...props}
+            projectId={projectId}
         />
     </Box>
 );
 
 Player.propTypes = {
     isPlayerOnly: PropTypes.bool,
-    onSeeInside: PropTypes.func
+    onSeeInside: PropTypes.func,
+    projectId: PropTypes.number
 };
 
 const mapStateToProps = state => ({
-- 
GitLab