From 486bbfa1f373f9c258fcd1afd83c35945d1db096 Mon Sep 17 00:00:00 2001 From: srikant Date: Thu, 23 May 2024 19:09:29 +0530 Subject: [PATCH] #1972 Resolve Error message during validations in Common Properties (#1973) Signed-off-by: srikant Co-authored-by: Matt Howard --- .../src/common-properties/ui-conditions/conditions-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas_modules/common-canvas/src/common-properties/ui-conditions/conditions-utils.js b/canvas_modules/common-canvas/src/common-properties/ui-conditions/conditions-utils.js index 1f72e6eaf6..e508ac6b7c 100644 --- a/canvas_modules/common-canvas/src/common-properties/ui-conditions/conditions-utils.js +++ b/canvas_modules/common-canvas/src/common-properties/ui-conditions/conditions-utils.js @@ -723,7 +723,7 @@ function _validateInput(propertyId, controller, control, showErrors) { if (isError) { errorSet = true; } - } else if (!isError && !errorSet) { + } else if ((!isError && !errorSet) || (!isError && errorSet)) { const msg = controller.getErrorMessage(msgPropertyId, false, false, false); if (!isEmpty(msg) && (msg.validation_id === errorMessage.validation_id)) { controller.updateErrorMessage(msgPropertyId, DEFAULT_VALIDATION_MESSAGE);