Fix optional chaining
This commit is contained in:
parent
ea407432cc
commit
055d3e63dd
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ export const ProductList: React.FC<ProductListProps> = props => {
|
|||
{product?.productType ? (
|
||||
<div className={classes.colNameWrapper}>
|
||||
<span>{product.name}</span>
|
||||
{product && product.productType && (
|
||||
{product?.productType && (
|
||||
<Typography variant="caption">
|
||||
{product.productType.hasVariants ? (
|
||||
<FormattedMessage defaultMessage="Configurable" />
|
||||
|
|
Loading…
Reference in a new issue