Merge pull request #26504 from 18alantom/fix-ig-portal-field-filter

fix: check if field_filters is None
This commit is contained in:
rohitwaghchaure 2021-07-21 11:28:14 +05:30 committed by GitHub
commit 6fbb2d3507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ def get_products_html_for_website(field_filters=None, attribute_filters=None):
return html return html
def set_item_group_filters(field_filters): def set_item_group_filters(field_filters):
if 'item_group' in field_filters: if field_filters is not None and 'item_group' in field_filters:
field_filters['item_group'] = [ig[0] for ig in get_child_groups(field_filters['item_group'])] field_filters['item_group'] = [ig[0] for ig in get_child_groups(field_filters['item_group'])]