Skip to content

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

Add quantity default value

Krzysztof Bialoglowicz34247edc470c
diff --git a/saleor/static/dashboard-next/products/views/ProductCreate.tsx b/saleor/static/dashboard-next/products/views/ProductCreate.tsx
index 9d6ddd269f..42aa40716e 100644
--- a/saleor/static/dashboard-next/products/views/ProductCreate.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductCreate.tsx
@@ -91,7 +91,7 @@ export const ProductUpdate: React.StatelessComponent<
? formData.publicationDate
: null,
sku: formData.sku,
- stockQuantity: formData.stockQuantity
+ stockQuantity: formData.stockQuantity !== null ? formData.stockQuantity : 0,
}
});
};