diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index ecd816204ee5a7d760e04a67d0f34599065eb1f6..bdbbb2b4ec1990afb608a85525a46f0a621e0d06 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -60,10 +60,11 @@ class Blocks extends React.Component { } attachVM () { this.workspace.addChangeListener(this.props.vm.blockListener); - this.workspace + this.flyoutWorkspace = this.workspace .getFlyout() - .getWorkspace() - .addChangeListener(this.props.vm.flyoutBlockListener); + .getWorkspace(); + this.flyoutWorkspace.addChangeListener(this.props.vm.flyoutBlockListener); + this.flyoutWorkspace.addChangeListener(this.props.vm.monitorBlockListener); this.props.vm.addListener('SCRIPT_GLOW_ON', this.onScriptGlowOn); this.props.vm.addListener('SCRIPT_GLOW_OFF', this.onScriptGlowOff); this.props.vm.addListener('BLOCK_GLOW_ON', this.onBlockGlowOn);