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

master
Andrew Dolgov 6 years ago
parent f81df37c36
commit ed1bd992d7

@ -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) {

Loading…
Cancel
Save