Fix broken text input in the switch node

This commit is contained in:
Kazuhito Yokoi 2023-07-02 00:40:15 +09:00
parent 234e92db12
commit cd76c934b6
1 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,11 @@
} 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";
}
} 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');