Fix a String value is an error, so return the value

This commit is contained in:
GogoVega
2024-06-03 18:57:41 +02:00
parent 34ed9c5cd8
commit da7c7ede02

View File

@@ -192,7 +192,7 @@ RED.editor = (function() {
if (isTypedInput) {
valid = input.typedInput("validate", { returnErrorMessage: true });
if (typeof valid === "string") {
valid = label ? label + ": " + valid : valid;
return label ? label + ": " + valid : valid;
}
}
}