validation
This commit is contained in:
@@ -69,7 +69,7 @@ const Products = () => {
|
|||||||
try {
|
try {
|
||||||
// Create the product first
|
// Create the product first
|
||||||
const response = await productsAPI.createUserProduct(productData);
|
const response = await productsAPI.createUserProduct(productData);
|
||||||
const createdProduct = response.data.data.product;
|
const createdProduct = response.data.data.userProduct;
|
||||||
|
|
||||||
// Save spreader settings if any
|
// Save spreader settings if any
|
||||||
if (productData.spreaderSettings && productData.spreaderSettings.length > 0) {
|
if (productData.spreaderSettings && productData.spreaderSettings.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user