From 74016be625893edde9e187539cfecabe97725555 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:14:35 +0100 Subject: [PATCH] Fix "undefined" text on unlinked inputs --- py/string_function.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/py/string_function.py b/py/string_function.py index fa56674..532e974 100644 --- a/py/string_function.py +++ b/py/string_function.py @@ -21,6 +21,14 @@ class StringFunction: OUTPUT_NODE = True def exec(self, action, tidy_tags, text_a, text_b, text_c=""): + # Converted inputs are sent as the string of 'undefined' if not connected + if text_a == "undefined": + text_a = "" + if text_b == "undefined": + text_b = "" + if text_c == "undefined": + text_c = "" + tidy_tags = tidy_tags == "yes" out = "" if action == "append":