Ensure Debugger toolbar is not shown if DebuggerEditor is not active

This commit is contained in:
Florian Rival
2018-04-24 17:10:18 +01:00
parent 3dede19f1f
commit d061be627b

View File

@@ -48,6 +48,8 @@ export default class Debugger extends React.Component<Props, State> {
};
updateToolbar() {
if (!this.props.isActive) return;
this.props.setToolbar(
<Toolbar
onPlay={() => this._play(this.state.selectedId)}