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

Make handlings one line

This commit is contained in:
Kazuhito Yokoi 2023-07-02 01:33:11 +09:00
parent cd76c934b6
commit 18e1b670ca

View File

@ -103,11 +103,7 @@
} else if (type === "istype") {
r.v = rule.find(".node-input-rule-type-value").typedInput('type');
r.vt = rule.find(".node-input-rule-type-value").typedInput('type');
if (r.vt === "number") {
r.vt = "num";
} else {
r.vt = "str";
}
r.vt = (r.vt === "number") ? "num" : "str";
} else if (type === "jsonata_exp") {
r.v = rule.find(".node-input-rule-exp-value").typedInput('value');
r.vt = rule.find(".node-input-rule-exp-value").typedInput('type');