From e45c2c14dcb841fc3c1db13b58712913ec1e9f31 Mon Sep 17 00:00:00 2001 From: Ekansh Saxena Date: Fri, 31 Mar 2023 00:33:37 +0300 Subject: [PATCH] Fix for cases when there is no label --- Validator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Validator.js b/Validator.js index 89ce153..8abb1c0 100644 --- a/Validator.js +++ b/Validator.js @@ -245,9 +245,11 @@ sap.ui.define( case "sap.m.Input": case "sap.m.Select": sLabel = oControl + .getParent() + .getLabel ? oControl .getParent() .getLabel() - .getText(); + .getText() : "No Label Found"; break; }