aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/html/util
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2026-02-09 06:49:22 -0800
committerGitHub Enterprise <[email protected]>2026-02-09 15:49:22 +0100
commitdfd73136dc74de3cc4a1815d06e26252f90ee6bd (patch)
tree5f46a034014a8a4b5c9cb4f72686eeaa5629dc18 /src/zenserver/frontend/html/util
parent5.7.20-pre2 (diff)
downloadzen-dfd73136dc74de3cc4a1815d06e26252f90ee6bd.tar.xz
zen-dfd73136dc74de3cc4a1815d06e26252f90ee6bd.zip
Fix formatting of stat pages (#748)
* Fix formatting of stat pages
Diffstat (limited to 'src/zenserver/frontend/html/util')
-rw-r--r--src/zenserver/frontend/html/util/component.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenserver/frontend/html/util/component.js b/src/zenserver/frontend/html/util/component.js
index 3c4780d77..830c6989a 100644
--- a/src/zenserver/frontend/html/util/component.js
+++ b/src/zenserver/frontend/html/util/component.js
@@ -71,6 +71,9 @@ class ComponentDom extends ComponentBase
text(value)
{
+ if (value != undefined && typeof value.tag === "function")
+ this.tag(value.tag())
+
value = (value == undefined) ? "undefined" : value.toString();
this._element.textContent = (value != "") ? value : "";
return this;