From 6630279fc8046d667a20fda596454725c6ecccd0 Mon Sep 17 00:00:00 2001 From: Without Ordinary Date: Tue, 1 Jul 2025 04:42:16 -0700 Subject: [PATCH] Fix sting switch inputs https://github.com/crystian/ComfyUI-Crystools/issues/209 --- nodes/switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/switch.py b/nodes/switch.py index 6b07faf..72d7829 100644 --- a/nodes/switch.py +++ b/nodes/switch.py @@ -68,8 +68,8 @@ class CSwitchBooleanString: def INPUT_TYPES(cls): return { "required": { - "on_true": (STRING, {"lazy": True}), - "on_false": (STRING, {"lazy": True}), + "on_true": ("STRING", {"default": "", "lazy": True}), + "on_false": ("STRING", {"default": "", "lazy": True}), "boolean": BOOLEAN, } }