Merge pull request #1350 from TandoorRecipes/patch-empty-recipe_list

Update recipe_search.py
This commit is contained in:
vabene1111
2022-01-17 17:59:19 +01:00
committed by GitHub

View File

@ -490,7 +490,7 @@ class RecipeFacet():
'space': self._request.space, 'space': self._request.space,
} }
elif self.hash_key is not None: elif self.hash_key is not None:
self._recipe_list = self._cache.get('recipe_list', None) self._recipe_list = self._cache.get('recipe_list', [])
self._search_params = { self._search_params = {
'keyword_list': self._cache.get('keyword_list', None), 'keyword_list': self._cache.get('keyword_list', None),
'food_list': self._cache.get('food_list', None), 'food_list': self._cache.get('food_list', None),