From 4859b66cc63cec651f06d9bcaa42e13e4c651513 Mon Sep 17 00:00:00 2001 From: catarak Date: Sat, 27 Aug 2016 21:52:00 -0400 Subject: [PATCH] fix #54 --- client/components/Nav.js | 8 ++++++-- client/modules/IDE/pages/IDEView.js | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/components/Nav.js b/client/components/Nav.js index 2da859e8..1485e041 100644 --- a/client/components/Nav.js +++ b/client/components/Nav.js @@ -59,7 +59,10 @@ function Nav(props) { return (
  • - + Open

    @@ -130,7 +133,8 @@ Nav.propTypes = { project: PropTypes.shape({ id: PropTypes.string }), - logoutUser: PropTypes.func.isRequired + logoutUser: PropTypes.func.isRequired, + stopSketch: PropTypes.func.isRequired }; export default Nav; diff --git a/client/modules/IDE/pages/IDEView.js b/client/modules/IDE/pages/IDEView.js index 965edc46..b90224bb 100644 --- a/client/modules/IDE/pages/IDEView.js +++ b/client/modules/IDE/pages/IDEView.js @@ -31,6 +31,7 @@ class IDEView extends React.Component { } componentDidMount() { + this.props.stopSketch(); if (this.props.params.project_id) { const id = this.props.params.project_id; this.props.getProject(id); @@ -119,6 +120,7 @@ class IDEView extends React.Component { cloneProject={this.props.cloneProject} project={this.props.project} logoutUser={this.props.logoutUser} + stopSketch={this.props.stopSketch} />