From ed1bd992d79e012afd8b9f4dfcf75542aed67cf3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Dec 2018 16:07:24 +0300 Subject: PrefFilterTree: fix obscure crash because of getLabel() not casting data to string --- js/PrefFilterTree.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'js') 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 = "" + label + - "" + item.param[0]; */ - return label; }, getIconClass: function (item, opened) { -- cgit v1.2.3