Fix broken filtering on ItemListHelper
Filter toggling didn't remove the specific filter but always the last item in the filter list. No, I don't know either why I didn't notice this earlier m(
This commit is contained in:
parent
bcef804a4a
commit
6c21ee32a8
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ function ItemListHelper(listType, supportedSorting, supportedFilters, defaultSor
|
|||
return;
|
||||
|
||||
var filters = self.currentFilters();
|
||||
filters.pop(filter);
|
||||
filters = _.without(filters, filter);
|
||||
self.currentFilters(filters);
|
||||
self._saveCurrentFiltersToLocalStorage();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue