only update console when expanded
This commit is contained in:
parent
4d6cb43330
commit
ee6c5e94aa
1 changed files with 1 additions and 1 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Reference in a new issue