diff --git a/packages/node_modules/@node-red/nodes/core/function/15-change.html b/packages/node_modules/@node-red/nodes/core/function/15-change.html index ca8eefa91..13f6503ae 100644 --- a/packages/node_modules/@node-red/nodes/core/function/15-change.html +++ b/packages/node_modules/@node-red/nodes/core/function/15-change.html @@ -24,11 +24,12 @@ if (!RED.utils.validatePropertyExpression(v)) { return false; } - } else if (v[i].vt === "jsonata") { + } else if (vt === "jsonata") { try{jsonata(v);}catch(e){return false;} - } else if ([i].vt === "json") { + } else if (vt === "json") { try{JSON.parse(v);}catch(e){return false;} } + return true; } RED.nodes.registerType('change', { color: "#E2D96E",