From efa5e62be2a59338349e4b81a00675e8b35bfce9 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 25 Sep 2024 10:11:33 +0200 Subject: [PATCH] M #-: Protect the labels column to check that is always a string (#3244) Signed-off-by: dcarracedo (cherry picked from commit 1fcb2ba5763d4c06b2d585bc9935816888aec85b) --- src/sunstone/public/app/utils/labels/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/utils/labels/utils.js b/src/sunstone/public/app/utils/labels/utils.js index 11bbe7cfd0..9fc0dbd033 100644 --- a/src/sunstone/public/app/utils/labels/utils.js +++ b/src/sunstone/public/app/utils/labels/utils.js @@ -403,7 +403,9 @@ define(function (require) { ); } else { return TemplateUtils.htmlEncode( - elementTemplate && elementTemplate[LABELS_ATTR] + elementTemplate && + elementTemplate[LABELS_ATTR] && + typeof elementTemplate[LABELS_ATTR] === 'string' ? elementTemplate[LABELS_ATTR] : "" );