[fix] minor fix in get_context for item variants (#8791)
This commit is contained in:
parent
62c7deee00
commit
e8270fe21c
@ -325,7 +325,7 @@ class Item(WebsiteGenerator):
|
||||
|
||||
def set_disabled_attributes(self, context):
|
||||
"""Disable selection options of attribute combinations that do not result in a variant"""
|
||||
if not self.attributes:
|
||||
if not self.attributes or not self.has_variants:
|
||||
return
|
||||
|
||||
context.disabled_attributes = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user