fix set editing target function
This commit is contained in:
1 parent
bc64e6ed3e
commit
7ed58da1cf
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user