#2523 show null category as uncategorized

This commit is contained in:
Toks
2015-11-18 18:55:38 -05:00
parent 156165a86f
commit a8f3a58a37

View File

@@ -532,9 +532,10 @@
method: "get",
success: function(data) {
resp($.map(data, function(saved_search) {
var category = saved_search.category === null ? "Uncategorized" : saved_search.category;
return {
label: saved_search.category,
value: saved_search.category
label: category,
value: category
};
}));
}