fix(admin): Duplicate product without prices (#3706)
* fix(admin): Duplicate product without prices * Create honest-ways-eat.md
This commit is contained in:
committed by
GitHub
parent
e5a2e9c8d2
commit
dae8da1099
6
.changeset/honest-ways-eat.md
Normal file
6
.changeset/honest-ways-eat.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@medusajs/admin-ui": patch
|
||||
"@medusajs/admin": patch
|
||||
---
|
||||
|
||||
fix(admin): Duplicate product without prices
|
||||
@@ -97,6 +97,8 @@ const useCopyProduct = () => {
|
||||
return acc
|
||||
}, {} as NonNullable<AdminPostProductsReq["variants"]>[0])
|
||||
|
||||
variantBase.prices = []
|
||||
|
||||
if (prices && prices.length) {
|
||||
variantBase.prices = prices.map((price) => ({
|
||||
amount: price.amount,
|
||||
|
||||
Reference in New Issue
Block a user