Switch JSONata expr does not require msg.parts.count

This commit is contained in:
Nick O'Leary
2020-06-29 09:32:19 +01:00
parent f01866d76f
commit 362554ad3b

View File

@@ -253,7 +253,7 @@ module.exports = function(RED) {
for (var i=0; i<this.rules.length; i+=1) {
var rule = this.rules[i];
needsCount = needsCount || ((rule.t === "tail") || (rule.t === "jsonata_exp"));
needsCount = needsCount || ((rule.t === "tail"));
if (!rule.vt) {
if (!isNaN(Number(rule.v))) {
rule.vt = 'num';