fix: default option in attributes
This commit is contained in:
@ -40,9 +40,7 @@ class AttributeService(
|
||||
attributes = []
|
||||
for attr, attr_value, attr_label in deal_attributes:
|
||||
select_schema = (
|
||||
AttributeSelectSchema.model_validate(attr.select)
|
||||
if attr.select
|
||||
else None
|
||||
AttrSelectSchema.model_validate(attr.select) if attr.select else None
|
||||
)
|
||||
|
||||
attribute = DealModuleAttributeSchema(
|
||||
|
||||
Reference in New Issue
Block a user