Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove product condition

Krzysztof Bialoglowiczbc41f623cb06
diff --git a/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx b/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx
index b75f3c942d..496805475c 100644
--- a/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx
+++ b/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx
@@ -98,7 +98,7 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(
product => (
<TableRow key={product ? product.id : "skeleton"}>
<TableCellAvatar
- thumbnail={product && maybe(() => product.thumbnail.url)}
+ thumbnail={maybe(() => product.thumbnail.url)}
/>
<TableCell className={classes.textLeft}>
{product ? (
diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
index 8d8f36cfd9..20f6a67a6a 100644
--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
@@ -168,8 +168,7 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(
)}
</TableCell>
<TableCell className={classes.colPrice}>
- {product &&
- maybe(() => product.basePrice) &&
+ {maybe(() => product.basePrice) &&
maybe(() => product.basePrice.amount) !== undefined &&
maybe(() => product.basePrice.currency) !== undefined ? (
<Money money={product.basePrice} />
diff --git a/saleor/static/dashboard-next/products/mutations.ts b/saleor/static/dashboard-next/products/mutations.ts
index b214718419..b8845d331e 100644
--- a/saleor/static/dashboard-next/products/mutations.ts
+++ b/saleor/static/dashboard-next/products/mutations.ts
@@ -136,7 +136,7 @@ export const productUpdateMutation = gql`
descriptionJson: $descriptionJson
isPublished: $isPublished
name: $name
- price: $basePrice
+ basePrice: $basePrice
}
) {
errors {