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
commit 346db89e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;}
}
}