mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Improve checking for presence of saved filters
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
47404b1dc8
commit
93ebfb6a4f
@@ -18,7 +18,7 @@ angular.module("admin.indexUtils").factory 'QueryPersistence', (localStorageServ
|
||||
restoreFilters: (scope) ->
|
||||
storedFilters = @getStoredFilters()
|
||||
|
||||
if storedFilters
|
||||
unless _.isEmpty(storedFilters)
|
||||
for k,v of storedFilters
|
||||
scope[k] = v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user