fix: default option in attributes

This commit is contained in:
2025-11-03 10:43:10 +04:00
parent be878717e5
commit a7bda3d9f6
6 changed files with 24 additions and 21 deletions

View File

@ -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(