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={
|
displayValue={
|
||||||
attribute.data.values.find(
|
attribute.data.values.find(
|
||||||
value => value.slug === attribute.value[0]
|
value => value.slug === attribute.value[0]
|
||||||
)?.name || ""
|
)?.name ||
|
||||||
|
attribute.value[0] ||
|
||||||
|
""
|
||||||
}
|
}
|
||||||
emptyOption={!attribute.data.isRequired}
|
emptyOption={!attribute.data.isRequired}
|
||||||
error={!!error}
|
error={!!error}
|
||||||
|
|
Loading…
Reference in a new issue