summaryrefslogtreecommitdiff
path: root/js/PrefFilterTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-04 16:07:24 +0300
committerAndrew Dolgov <[email protected]>2018-12-04 16:07:24 +0300
commited1bd992d79e012afd8b9f4dfcf75542aed67cf3 (patch)
tree8efe07a05e6d61e37fcfcb6f4c36f947bf284786 /js/PrefFilterTree.js
parentf81df37c3678ef9bf14c3a8ca9be1e26d3099822 (diff)
PrefFilterTree: fix obscure crash because of getLabel() not casting data to string
Diffstat (limited to 'js/PrefFilterTree.js')
-rw-r--r--js/PrefFilterTree.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js
index 4f4e02d95..4f6979f99 100644
--- a/js/PrefFilterTree.js
+++ b/js/PrefFilterTree.js
@@ -35,7 +35,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
},
getLabel: function(item) {
- let label = item.name;
+ let label = String(item.name);
const feed = this.model.store.getValue(item, 'feed');
const inverse = this.model.store.getValue(item, 'inverse');
@@ -46,10 +46,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (inverse)
label += " (" + __("Inverse") + ")";
- /* if (item.param)
- label = "<span class=\"labelFixedLength\">" + label +
- "</span>" + item.param[0]; */
-
return label;
},
getIconClass: function (item, opened) {