mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4242 from kazuhitoyokoi/master-fixswitchnode
Fix broken text input in the switch node
This commit is contained in:
commit
5d990ff4c5
@ -103,6 +103,7 @@
|
|||||||
} else if (type === "istype") {
|
} else if (type === "istype") {
|
||||||
r.v = rule.find(".node-input-rule-type-value").typedInput('type');
|
r.v = rule.find(".node-input-rule-type-value").typedInput('type');
|
||||||
r.vt = rule.find(".node-input-rule-type-value").typedInput('type');
|
r.vt = rule.find(".node-input-rule-type-value").typedInput('type');
|
||||||
|
r.vt = (r.vt === "number") ? "num" : "str";
|
||||||
} else if (type === "jsonata_exp") {
|
} else if (type === "jsonata_exp") {
|
||||||
r.v = rule.find(".node-input-rule-exp-value").typedInput('value');
|
r.v = rule.find(".node-input-rule-exp-value").typedInput('value');
|
||||||
r.vt = rule.find(".node-input-rule-exp-value").typedInput('type');
|
r.vt = rule.find(".node-input-rule-exp-value").typedInput('type');
|
||||||
|
Loading…
Reference in New Issue
Block a user