1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

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

Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
This commit is contained in:
David 2024-09-25 10:11:33 +02:00 committed by GitHub
parent f48d0216c9
commit 1fcb2ba576
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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