only update console when expanded

This commit is contained in:
Lauren McCarthy 2016-10-01 16:25:00 -07:00
parent 4d6cb43330
commit ee6c5e94aa

View file

@ -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 = (