1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: Protect the labels column to check that is always a string (#3244)

Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
(cherry picked from commit 1fcb2ba5763d4c06b2d585bc9935816888aec85b)
This commit is contained in:
David 2024-09-25 10:11:33 +02:00 committed by Tino Vázquez
parent 8950a11518
commit efa5e62be2
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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]
: ""
);