mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Move the block.isMonitored below the block is undefined check
This commit is contained in:
parent
1ea69dd504
commit
7841d44ccf
1 changed files with 1 additions and 1 deletions
|
@ -276,9 +276,9 @@ class Blocks {
|
|||
// Validate
|
||||
if (['field', 'mutation', 'checkbox'].indexOf(args.element) === -1) return;
|
||||
const block = this._blocks[args.id];
|
||||
let wasMonitored = block.isMonitored;
|
||||
if (typeof block === 'undefined') return;
|
||||
|
||||
let wasMonitored = block.isMonitored;
|
||||
switch (args.element) {
|
||||
case 'field':
|
||||
// Update block value
|
||||
|
|
Loading…
Reference in a new issue