diff --git a/backend/src/routes/products.js b/backend/src/routes/products.js index 9b5b61a..91f972f 100644 --- a/backend/src/routes/products.js +++ b/backend/src/routes/products.js @@ -119,7 +119,7 @@ router.get('/', async (req, res, next) => { customBrand: product.custom_brand, categoryId: product.category_id, categoryName: product.custom_category_name || product.category_name, - productType: product.custom_product_type || product.base_product_type, + productType: product.custom_product_type || product.base_product_type || null, customProductType: product.custom_product_type, activeIngredients: product.custom_active_ingredients, customActiveIngredients: product.custom_active_ingredients,