From f786c7f144d20008ad0b496b3ae2965261ec5eb7 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Thu, 13 Jan 2022 21:42:50 +0900 Subject: [PATCH] fix JSON propety validation of inject node --- .../node_modules/@node-red/nodes/core/common/20-inject.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/common/20-inject.html b/packages/node_modules/@node-red/nodes/core/common/20-inject.html index a5dcb061a..f233c62fd 100644 --- a/packages/node_modules/@node-red/nodes/core/common/20-inject.html +++ b/packages/node_modules/@node-red/nodes/core/common/20-inject.html @@ -234,7 +234,7 @@ } } else if (v[i].vt === "jsonata") { try{jsonata(v[i].v);}catch(e){return false;} - } else if ([i].vt === "json") { + } else if (v[i].vt === "json") { try{JSON.parse(v[i].v);}catch(e){return false;} } }