fix(admin-ui): Fix issue with null product categories (#5707)
* fix(admin-ui): If categories is null on a product the details page should not crash * cleanup variant warning to reflect pricing changes
This commit is contained in:
committed by
GitHub
parent
712c4496ce
commit
f4c489fb85
@@ -157,7 +157,7 @@ const ProductDetails = ({ product }: Props) => {
|
||||
{isFeatureEnabled(FeatureFlag.PRODUCT_CATEGORIES) && (
|
||||
<Detail
|
||||
title={t("product-general-section-category", "Category")}
|
||||
value={product.categories.map((c) => c.name)}
|
||||
value={product.categories?.map((c) => c.name)}
|
||||
/>
|
||||
)}
|
||||
<Detail
|
||||
|
||||
Reference in New Issue
Block a user