Fix ItemListHelper throwing an error on undefined items
Just fall back to an empty list. Fixed #2572 (at least the bit that isn't a broken nginx config)
This commit is contained in:
1 parent
33b27e450f
commit
a33b037364
1 file changed
+1
@@ -27,6 +27,7 @@ function ItemListHelper(listType, supportedSorting, supportedFilters, defaultSor
|
||||
};
|
||||
|
||||
self.updateItems = function(items) {
|
||||
if (items === undefined) items = [];
|
||||
self.allItems = items;
|
||||
self.allSize(items.length);
|
||||
self._updateItems();
|
||||
|
||||
Reference in new issue
Block a user