Merge pull request #3349 from node-red-hitachi/fix-inject-property-validation

fix JSON propety validation of inject node
This commit is contained in:
Nick O'Leary
2022-01-13 12:50:17 +00:00
committed by GitHub

View File

@@ -234,7 +234,7 @@
} }
} else if (v[i].vt === "jsonata") { } else if (v[i].vt === "jsonata") {
try{jsonata(v[i].v);}catch(e){return false;} 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;} try{JSON.parse(v[i].v);}catch(e){return false;}
} }
} }