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:
parent
df0ecbaf3a
commit
ae02cf8d71
@ -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();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user