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) {
|
componentWillReceiveProps(nextProps) {
|
||||||
if (nextProps.isPlaying && !this.props.isPlaying) {
|
if (nextProps.isPlaying && !this.props.isPlaying) {
|
||||||
this.children = [];
|
this.children = [];
|
||||||
} else if (nextProps.consoleEvent !== this.props.consoleEvent) {
|
} else if (nextProps.isExpanded && nextProps.consoleEvent !== this.props.consoleEvent) {
|
||||||
const args = nextProps.consoleEvent.arguments;
|
const args = nextProps.consoleEvent.arguments;
|
||||||
const method = nextProps.consoleEvent.method;
|
const method = nextProps.consoleEvent.method;
|
||||||
const nextChild = (
|
const nextChild = (
|
||||||
|
|
Loading…
Reference in a new issue