Skip to content

Commit

Permalink
Fix bug with Index out of range in ProductTranslatableContent (saleor…
Browse files Browse the repository at this point in the history
  • Loading branch information
CossackDex authored Aug 6, 2021
1 parent 389a0f1 commit e1cad7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions saleor/graphql/translations/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def get_translatable_attribute_values(attributes: list) -> List[AttributeValue]:
for assignment in attributes:
attr = assignment["attribute"]
if attr.input_type in AttributeInputType.TRANSLATABLE_ATTRIBUTES:
value = assignment["values"][0]
translatable_values.append(value)
translatable_values.extend(assignment["values"])
return translatable_values


Expand Down

0 comments on commit e1cad7f

Please sign in to comment.