From 43eb38c8cb1f66fb6c0fb663a9f44979b70b0b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frane=20Poli=C4=87?= <16856471+fPolic@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:44:09 +0200 Subject: [PATCH] fix(dashboard): create variant remove inventory quantity (#8129) --- .../create-product-variant-form.tsx | 21 ------------------- 1 file changed, 21 deletions(-) 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")} - - - - - - - ) - }} - />