diff --git a/.changeset/honest-ways-eat.md b/.changeset/honest-ways-eat.md new file mode 100644 index 0000000000..2812db1c9e --- /dev/null +++ b/.changeset/honest-ways-eat.md @@ -0,0 +1,6 @@ +--- +"@medusajs/admin-ui": patch +"@medusajs/admin": patch +--- + +fix(admin): Duplicate product without prices diff --git a/packages/admin-ui/ui/src/components/templates/product-table/use-copy-product.ts b/packages/admin-ui/ui/src/components/templates/product-table/use-copy-product.ts index 0fb1967c20..f1dd32cfbb 100644 --- a/packages/admin-ui/ui/src/components/templates/product-table/use-copy-product.ts +++ b/packages/admin-ui/ui/src/components/templates/product-table/use-copy-product.ts @@ -97,6 +97,8 @@ const useCopyProduct = () => { return acc }, {} as NonNullable[0]) + variantBase.prices = [] + if (prices && prices.length) { variantBase.prices = prices.map((price) => ({ amount: price.amount,