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:
Gina Häußge committed 2018-04-12 11:55:14 +02:00
1 parent 33b27e450f
commit a33b037364
1 file changed
+1
+1
View File
@@ -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();