diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 5562ed9db..cdfa8be5e 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1561,7 +1561,13 @@ class Runtime extends EventEmitter { * @param {!string} monitorId ID of the monitor to remove. */ requestRemoveMonitor (monitorId) { - this._monitorState = this._monitorState.delete(monitorId); + // this._monitorState = this._monitorState.delete(monitorId); + // TODO is this performant? + if (this._monitorState.has(monitorId)) { + this._monitorState = this._monitorState.set( + monitorId, this._monitorState.get(monitorId).merge({visible: false}) + ); + } } /**