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") {
|
if (rule.t == "btwn") {
|
||||||
btwnValueField.val(rule.v);
|
btwnValueField.val(rule.v);
|
||||||
btwnValue2Field.val(rule.v2);
|
btwnValue2Field.val(rule.v2);
|
||||||
} else if (rule.v) {
|
} else if (typeof rule.v != "undefined") {
|
||||||
valueField.val(rule.v);
|
valueField.val(rule.v);
|
||||||
}
|
}
|
||||||
selectField.change();
|
selectField.change();
|
||||||
|
@ -48,7 +48,7 @@ function SwitchNode(n) {
|
|||||||
rule.v2 = Number(rule.v2);
|
rule.v2 = Number(rule.v2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.on('input', function (msg) {
|
this.on('input', function (msg) {
|
||||||
var onward = [];
|
var onward = [];
|
||||||
var prop = propertyParts.reduce(function (obj, i) {
|
var prop = propertyParts.reduce(function (obj, i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user