From d10b52924c56521a062c69aa55aeda5a99387c5e Mon Sep 17 00:00:00 2001 From: hosseintaromi Date: Fri, 1 Aug 2025 14:38:46 +0330 Subject: [PATCH] fix: update product variant model to include variant_attribute_name and remove product_option_id --- src/pages/products/core/_models.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/products/core/_models.ts b/src/pages/products/core/_models.ts index 7cb2cac..4810266 100644 --- a/src/pages/products/core/_models.ts +++ b/src/pages/products/core/_models.ts @@ -18,7 +18,6 @@ export interface ProductVariant { stock_managed: boolean; stock_number: number; weight: number; - product_option_id?: number; attributes?: Record; meta?: Record; file_ids?: ProductImage[]; @@ -60,7 +59,7 @@ export interface ProductFormData { product_option_id?: number; total_sold: number; type: number; - attributes: Record; + variant_attribute_name?: string; file_ids: ProductImage[]; variants: ProductVariantFormData[]; } @@ -74,7 +73,6 @@ export interface ProductVariantFormData { stock_managed: boolean; stock_number: number; weight: number; - product_option_id?: number; attributes: Record; meta: Record; file_ids: ProductImage[];