dont crash on null category

#3681
This commit is contained in:
barisusakli
2015-09-27 18:00:10 -04:00
parent 7379f93a00
commit d8c9c8d447

View File

@@ -73,6 +73,9 @@
};
helpers.generateCategoryBackground = function(category) {
if (!category) {
return '';
}
var style = [];
if (category.bgColor) {