fix(website_search): Avoid recursive loop if _items_to_index is falsy
This commit is contained in:
parent
dcd14d07dc
commit
3544b87f58
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class WebsiteSearch(FullTextSearch):
|
|||
self (object): FullTextSearch Instance
|
||||
"""
|
||||
|
||||
if getattr(self, "_items_to_index", False):
|
||||
if getattr(self, "_items_to_index", None) is not None:
|
||||
return self._items_to_index
|
||||
|
||||
self._items_to_index = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue