Fix custom attribute value
This commit is contained in:
parent
b7b5cb9d69
commit
787a5f95c8
1 changed files with 3 additions and 1 deletions
|
@ -196,7 +196,9 @@ const ProductAttributes: React.FC<ProductAttributesProps> = ({
|
|||
displayValue={
|
||||
attribute.data.values.find(
|
||||
value => value.slug === attribute.value[0]
|
||||
)?.name || ""
|
||||
)?.name ||
|
||||
attribute.value[0] ||
|
||||
""
|
||||
}
|
||||
emptyOption={!attribute.data.isRequired}
|
||||
error={!!error}
|
||||
|
|
Loading…
Reference in a new issue