1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix JSON propety validation of inject node

This commit is contained in:
Hiroyasu Nishiyama 2022-01-13 21:42:50 +09:00
parent 943b103001
commit f786c7f144

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