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:
Kasper Fabricius Kristensen
2023-11-24 12:51:32 +00:00
committed by GitHub
parent 712c4496ce
commit f4c489fb85
4 changed files with 9 additions and 14 deletions

View File

@@ -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