From 7841d44ccf9160c80e17cfc674edeb44749160ae Mon Sep 17 00:00:00 2001 From: DD Liu Date: Thu, 11 May 2017 10:33:46 -0400 Subject: [PATCH] Move the block.isMonitored below the block is undefined check --- src/engine/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/blocks.js b/src/engine/blocks.js index 95a02ec9c..3d9b44d61 100644 --- a/src/engine/blocks.js +++ b/src/engine/blocks.js @@ -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