Skip to content

Commit 8cda9ec

Browse files
odeimaizmatusdrobuliak66
authored andcommitted
🐛 [Frontend] Fix: Pass the initial value (#8529)
1 parent ec2c442 commit 8cda9ec

File tree

1 file changed

+3
-2
lines changed
  • services/static-webserver/client/source/class/osparc/ui/basic

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/ui/basic/SafeLabel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
qx.Class.define("osparc.ui.basic.SafeLabel", {
2323
extend: qx.ui.basic.Label,
2424

25-
construct() {
26-
this.base(arguments);
25+
construct(value) {
26+
const sanitized = value && typeof value === "string" ? osparc.wrapper.DOMPurify.sanitize(value) : null;
27+
this.base(arguments, sanitized);
2728

2829
this.set({
2930
rich: true,

0 commit comments

Comments
 (0)