This commit is contained in:
hamid zarghami
2026-02-14 14:46:06 +03:30
parent 3b28f0ac42
commit eb67f767d7
3 changed files with 16 additions and 12 deletions
+5 -1
View File
@@ -72,7 +72,11 @@ const UpdateProduct: FC = () => {
const allImages = [...values.images, ...newImageUrls]
const variants =
values.variants.length > 0
? values.variants
? values.variants.map((v) => ({
...(v.id && { id: v.id }),
value: v.value ?? '',
price: v.price ?? 0
}))
: [{ value: '', price: values.price }]
const productData: CreateProductType = {
...values,