Skip to content

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

Clean up mutations

dominik-zeglen872d48416d62
diff --git a/saleor/static/dashboard-next/products/mutations.ts b/saleor/static/dashboard-next/products/mutations.ts
index a6a51fdefa..3066f49ac5 100644
--- a/saleor/static/dashboard-next/products/mutations.ts
+++ b/saleor/static/dashboard-next/products/mutations.ts
@@ -206,7 +206,6 @@ export const variantUpdateMutation = gql`
$attributes: [AttributeValueInput]
$costPrice: Decimal
$priceOverride: Decimal
- $product: ID
$sku: String
$quantity: Int
$trackInventory: Boolean!
@@ -217,7 +216,6 @@ export const variantUpdateMutation = gql`
attributes: $attributes
costPrice: $costPrice
priceOverride: $priceOverride
- product: $product
sku: $sku
quantity: $quantity
trackInventory: $trackInventory
@@ -244,7 +242,7 @@ export const variantCreateMutation = gql`
$attributes: [AttributeValueInput]
$costPrice: Decimal
$priceOverride: Decimal
- $product: ID
+ $product: ID!
$sku: String
$quantity: Int
$trackInventory: Boolean!