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

Make 0's appear in switch node dialog (were seen as nulls)

This commit is contained in:
Dave C-J 2014-04-11 10:56:59 +01:00
parent df0ecbaf3a
commit ae02cf8d71
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@
if (rule.t == "btwn") {
btwnValueField.val(rule.v);
btwnValue2Field.val(rule.v2);
} else if (rule.v) {
} else if (typeof rule.v != "undefined") {
valueField.val(rule.v);
}
selectField.change();

View File

@ -48,7 +48,7 @@ function SwitchNode(n) {
rule.v2 = Number(rule.v2);
}
}
this.on('input', function (msg) {
var onward = [];
var prop = propertyParts.reduce(function (obj, i) {