Delete monitor block when variable is deleted

This commit is contained in:
DD 2017-11-15 11:34:20 -05:00
parent 95ca10038b
commit aa0064948a
3 changed files with 13 additions and 20 deletions

View file

@ -189,6 +189,7 @@ class Target extends EventEmitter {
if (this.variables.hasOwnProperty(id)) {
delete this.variables[id];
if (this.runtime) {
this.runtime.monitorBlocks.deleteBlock(id);
this.runtime.requestRemoveMonitor(id);
}
}