From ee6c5e94aab4888c36ec49b0f69739ff392fc8f8 Mon Sep 17 00:00:00 2001 From: Lauren McCarthy Date: Sat, 1 Oct 2016 16:25:00 -0700 Subject: [PATCH] only update console when expanded --- client/modules/IDE/components/Console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/components/Console.js b/client/modules/IDE/components/Console.js index 52b33d58..177f53cc 100644 --- a/client/modules/IDE/components/Console.js +++ b/client/modules/IDE/components/Console.js @@ -25,7 +25,7 @@ class Console extends React.Component { componentWillReceiveProps(nextProps) { if (nextProps.isPlaying && !this.props.isPlaying) { this.children = []; - } else if (nextProps.consoleEvent !== this.props.consoleEvent) { + } else if (nextProps.isExpanded && nextProps.consoleEvent !== this.props.consoleEvent) { const args = nextProps.consoleEvent.arguments; const method = nextProps.consoleEvent.method; const nextChild = (