feat: complete full CRUD for products with unified edit dialog and robust mapping
This commit is contained in:
@@ -107,8 +107,8 @@ export async function updateProduct(id: string, product: Partial<Product>, modul
|
||||
if (modules.length > 0) {
|
||||
const modulesWithId = modules.map(m => ({
|
||||
name: m.name,
|
||||
description: m.description,
|
||||
price: m.additional_price, // Match schema column name 'price'
|
||||
description: m.description || null,
|
||||
price: m.price,
|
||||
is_required: m.is_required,
|
||||
requirements: m.requirements || [],
|
||||
exclusions: m.exclusions || [],
|
||||
|
||||
Reference in New Issue
Block a user