mirror of https://github.com/node-red/node-red.git
fix JSONata evaluation of inject button
This commit is contained in:
parent
7924907384
commit
7fbebbf361
|
@ -109,9 +109,10 @@ module.exports = function(RED) {
|
|||
if (!property) return;
|
||||
|
||||
if (valueType === "jsonata") {
|
||||
if (p.exp) {
|
||||
if (p.v) {
|
||||
try {
|
||||
var val = RED.util.evaluateJSONataExpression(p.exp, msg);
|
||||
var exp = RED.util.prepareJSONataExpression(p.v, node);
|
||||
var val = RED.util.evaluateJSONataExpression(exp, msg);
|
||||
RED.util.setMessageProperty(msg, property, val, true);
|
||||
}
|
||||
catch (err) {
|
||||
|
|
Loading…
Reference in New Issue