1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

PrefFilterTree: fix obscure crash because of getLabel() not casting data to string

This commit is contained in:
Andrew Dolgov
2018-12-04 16:07:24 +03:00
parent f81df37c36
commit ed1bd992d7

View File

@@ -35,7 +35,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
}, },
getLabel: function(item) { getLabel: function(item) {
let label = item.name; let label = String(item.name);
const feed = this.model.store.getValue(item, 'feed'); const feed = this.model.store.getValue(item, 'feed');
const inverse = this.model.store.getValue(item, 'inverse'); const inverse = this.model.store.getValue(item, 'inverse');
@@ -46,10 +46,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (inverse) if (inverse)
label += " (" + __("Inverse") + ")"; label += " (" + __("Inverse") + ")";
/* if (item.param)
label = "<span class=\"labelFixedLength\">" + label +
"</span>" + item.param[0]; */
return label; return label;
}, },
getIconClass: function (item, opened) { getIconClass: function (item, opened) {