mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
fix set editing target function
This commit is contained in:
parent
bc64e6ed3e
commit
7ed58da1cf
1 changed files with 1 additions and 1 deletions
|
@ -631,7 +631,7 @@ class VirtualMachine extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
setEditingTarget (targetId) {
|
setEditingTarget (targetId) {
|
||||||
// Has the target id changed? If not, exit.
|
// Has the target id changed? If not, exit.
|
||||||
if (targetId === this.editingTarget.id) {
|
if (this.editingTarget && targetId === this.editingTarget.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const target = this.runtime.getTargetById(targetId);
|
const target = this.runtime.getTargetById(targetId);
|
||||||
|
|
Loading…
Reference in a new issue