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

pull/4747/head
GogoVega 2024-06-03 18:57:41 +02:00
parent 34ed9c5cd8
commit da7c7ede02
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B
1 changed files with 1 additions and 1 deletions

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;
}
}
}