mirror of https://github.com/node-red/node-red.git
fix JSON propety validation of inject node
parent
943b103001
commit
f786c7f144
|
@ -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;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue