fix(dashboard): Clean Edit Variant form payload of empty strings (#7512)
* fix(dashboard): Clean Edit Variant form paylod of empty strings * fix(dashboard,medusa): Allow passing null to update variant to unset fields * fix product edit form * cleanup * cleanup * pass prop
This commit is contained in:
@@ -1183,19 +1183,19 @@ export interface CreateProductVariantDTO {
|
||||
/**
|
||||
* The SKU of the product variant.
|
||||
*/
|
||||
sku?: string
|
||||
sku?: string | null
|
||||
/**
|
||||
* The barcode of the product variant.
|
||||
*/
|
||||
barcode?: string
|
||||
barcode?: string | null
|
||||
/**
|
||||
* The EAN of the product variant.
|
||||
*/
|
||||
ean?: string
|
||||
ean?: string | null
|
||||
/**
|
||||
* The UPC of the product variant.
|
||||
*/
|
||||
upc?: string
|
||||
upc?: string | null
|
||||
/**
|
||||
* Whether the product variant can be ordered when it's out of stock.
|
||||
*/
|
||||
@@ -1207,35 +1207,35 @@ export interface CreateProductVariantDTO {
|
||||
/**
|
||||
* The HS Code of the product variant.
|
||||
*/
|
||||
hs_code?: string
|
||||
hs_code?: string | null
|
||||
/**
|
||||
* The origin country of the product variant.
|
||||
*/
|
||||
origin_country?: string
|
||||
origin_country?: string | null
|
||||
/**
|
||||
* The MID Code of the product variant.
|
||||
*/
|
||||
mid_code?: string
|
||||
mid_code?: string | null
|
||||
/**
|
||||
* The material of the product variant.
|
||||
*/
|
||||
material?: string
|
||||
material?: string | null
|
||||
/**
|
||||
* The weight of the product variant.
|
||||
*/
|
||||
weight?: number
|
||||
weight?: number | null
|
||||
/**
|
||||
* The length of the product variant.
|
||||
*/
|
||||
length?: number
|
||||
length?: number | null
|
||||
/**
|
||||
* The height of the product variant.
|
||||
*/
|
||||
height?: number
|
||||
height?: number | null
|
||||
/**
|
||||
* The width of the product variant.
|
||||
*/
|
||||
width?: number
|
||||
width?: number | null
|
||||
/**
|
||||
* The options of the variant. Each key is an option's title, and value
|
||||
* is an option's value. If an option with the specified title doesn't exist,
|
||||
@@ -1280,19 +1280,19 @@ export interface UpdateProductVariantDTO {
|
||||
/**
|
||||
* The SKU of the product variant.
|
||||
*/
|
||||
sku?: string
|
||||
sku?: string | null
|
||||
/**
|
||||
* The barcode of the product variant.
|
||||
*/
|
||||
barcode?: string
|
||||
barcode?: string | null
|
||||
/**
|
||||
* The EAN of the product variant.
|
||||
*/
|
||||
ean?: string
|
||||
ean?: string | null
|
||||
/**
|
||||
* The UPC of the product variant.
|
||||
*/
|
||||
upc?: string
|
||||
upc?: string | null
|
||||
/**
|
||||
* Whether the product variant can be ordered when it's out of stock.
|
||||
*/
|
||||
@@ -1304,35 +1304,35 @@ export interface UpdateProductVariantDTO {
|
||||
/**
|
||||
* The HS Code of the product variant.
|
||||
*/
|
||||
hs_code?: string
|
||||
hs_code?: string | null
|
||||
/**
|
||||
* The origin country of the product variant.
|
||||
*/
|
||||
origin_country?: string
|
||||
origin_country?: string | null
|
||||
/**
|
||||
* The MID Code of the product variant.
|
||||
*/
|
||||
mid_code?: string
|
||||
mid_code?: string | null
|
||||
/**
|
||||
* The material of the product variant.
|
||||
*/
|
||||
material?: string
|
||||
material?: string | null
|
||||
/**
|
||||
* The weight of the product variant.
|
||||
*/
|
||||
weight?: number
|
||||
weight?: number | null
|
||||
/**
|
||||
* The length of the product variant.
|
||||
*/
|
||||
length?: number
|
||||
length?: number | null
|
||||
/**
|
||||
* The height of the product variant.
|
||||
*/
|
||||
height?: number
|
||||
height?: number | null
|
||||
/**
|
||||
* The width of the product variant.
|
||||
*/
|
||||
width?: number
|
||||
width?: number | null
|
||||
/**
|
||||
* The product variant options to associate with the product variant.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user