diff --git a/packages/admin-next/dashboard/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx b/packages/admin-next/dashboard/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx index 985ae23a37..ad54f565ec 100644 --- a/packages/admin-next/dashboard/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +++ b/packages/admin-next/dashboard/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx @@ -27,7 +27,6 @@ const CreateProductVariantSchema = z.object({ ean: z.string().optional(), upc: z.string().optional(), barcode: z.string().optional(), - inventory_quantity: optionalInt, manage_inventory: z.boolean(), allow_backorder: z.boolean(), weight: optionalInt, @@ -49,7 +48,6 @@ export const CreateProductVariantForm = ({ const form = useForm>({ defaultValues: { - inventory_quantity: 0, manage_inventory: true, allow_backorder: false, options: {}, @@ -79,7 +77,6 @@ export const CreateProductVariantForm = ({ height, width, length, - inventory_quantity, allow_backorder, manage_inventory, sku, @@ -100,7 +97,6 @@ export const CreateProductVariantForm = ({ ean, upc, barcode, - inventory_quantity: parseNumber(inventory_quantity), allow_backorder, manage_inventory, } @@ -247,23 +243,6 @@ export const CreateProductVariantForm = ({ ) }} /> - { - return ( - - - {t("fields.inventoryQuantity")} - - - - - - - ) - }} - />