From cd76c934b61e79318ca57acc5fe58c8b359922e7 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sun, 2 Jul 2023 00:40:15 +0900 Subject: [PATCH] Fix broken text input in the switch node --- .../@node-red/nodes/core/function/10-switch.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/node_modules/@node-red/nodes/core/function/10-switch.html b/packages/node_modules/@node-red/nodes/core/function/10-switch.html index ebe22d65c..78cfa0793 100644 --- a/packages/node_modules/@node-red/nodes/core/function/10-switch.html +++ b/packages/node_modules/@node-red/nodes/core/function/10-switch.html @@ -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');