Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix skeleton / empty state logic
dominik-zeglenf661ca37295a
diff --git a/saleor/static/dashboard-next/productTypes/components/ProductTypeList/ProductTypeList.tsx b/saleor/static/dashboard-next/productTypes/components/ProductTypeList/ProductTypeList.tsxindex ef334afc65..776ce93991 100644--- a/saleor/static/dashboard-next/productTypes/components/ProductTypeList/ProductTypeList.tsx+++ b/saleor/static/dashboard-next/productTypes/components/ProductTypeList/ProductTypeList.tsx@@ -90,16 +90,20 @@ const ProductTypeList = decorate<ProductTypeListProps>()}</TableCell><TableCell>- {maybe(() => productType.hasVariants) ? (+ {maybe(() => productType.hasVariants) !== undefined ? (maybe(() => productType.variantAttributes) ? (- productType.variantAttributes- .map(attribute => attribute.name)- .join(", ")+ productType.variantAttributes.length > 0 ? (+ productType.variantAttributes+ .map(attribute => attribute.name)+ .join(", ")+ ) : (+ "-"+ )) : (<Skeleton />)) : (- "-"+ <Skeleton />)}</TableCell></TableRow>