Merge pull request #2062 from storytold/sonar-fix/js-css-reliability

fix: JS reliability bugs (SonarCloud S1764/S9383/S4275)
This commit is contained in:
Dylan M. Taylor
2026-10-22 19:27:57 -04:00
committed by GitHub
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -840,7 +840,7 @@ function __uiJson(c, inherited) {
o.value = Number(c.value) || 0;
o.min = Number(c.minvalue) || 0;
o.max = Number(c.maxvalue);
if (!(o.max === o.max)) o.max = 100;
if (Number.isNaN(o.max)) o.max = 100;
}
if (c.items) {
o.items = c.items.map(function (it) { return String(it.text); });