Skip to content

Commit daa0a93

Browse files
committed
Update schema
1 parent bcc7b25 commit daa0a93

File tree

1 file changed

+4
-4
lines changed
  • packages/admin/dashboard/src/routes/products/product-create

1 file changed

+4
-4
lines changed

packages/admin/dashboard/src/routes/products/product-create/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const ProductCreateVariantSchema = z.object({
1919
barcode: z.string().optional(),
2020
mid_code: z.string().optional(),
2121
hs_code: z.string().optional(),
22-
width: optionalInt,
23-
height: optionalInt,
24-
length: optionalInt,
25-
weight: optionalInt,
22+
width: optionalFloat,
23+
height: optionalFloat,
24+
length: optionalFloat,
25+
weight: optionalFloat,
2626
material: z.string().optional(),
2727
origin_country: z.string().optional(),
2828
sku: z.string().optional(),

0 commit comments

Comments
 (0)