Fix invalid from property error in change node (#1442)

* Fix invalid from property error in change node

* Empty commit to run test cases again
This commit is contained in:
Kazuhito Yokoi
2017-10-18 06:17:27 +09:00
committed by Nick O'Leary
parent 611e598756
commit 5b137c457b
2 changed files with 40 additions and 2 deletions

View File

@@ -129,9 +129,9 @@ module.exports = function(RED) {
if (rule.fromt === 'msg' || rule.fromt === 'flow' || rule.fromt === 'global') {
if (rule.fromt === "msg") {
fromValue = RED.util.getMessageProperty(msg,rule.from);
} else if (rule.tot === 'flow') {
} else if (rule.fromt === 'flow') {
fromValue = node.context().flow.get(rule.from);
} else if (rule.tot === 'global') {
} else if (rule.fromt === 'global') {
fromValue = node.context().global.get(rule.from);
}
if (typeof fromValue === 'number' || fromValue instanceof Number) {