fix set editing target function

This commit is contained in:
DD committed 2018-01-11 16:43:18 -05:00
1 parent bc64e6ed3e
commit 7ed58da1cf
1 file changed
+1 -1
+1 -1
View File
@@ -631,7 +631,7 @@ class VirtualMachine extends EventEmitter {
*/
setEditingTarget (targetId) {
// Has the target id changed? If not, exit.
if (targetId === this.editingTarget.id) {
if (this.editingTarget && targetId === this.editingTarget.id) {
return;
}
const target = this.runtime.getTargetById(targetId);