Fix "undefined" text on unlinked inputs

This commit is contained in:
pythongosssss
2023-07-30 15:14:35 +01:00
parent b22d4c5df4
commit 74016be625
+8
View File
@@ -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":