fix(admin-ui) Refactor use-copy-promotion to map product IDs (#6306)
This commit is contained in:
6
.changeset/tall-paws-accept.md
Normal file
6
.changeset/tall-paws-accept.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@medusajs/admin-ui": patch
|
||||
"@medusajs/admin": patch
|
||||
---
|
||||
|
||||
fix(admin-ui) Refactor `use-copy-promotion` to map product IDs
|
||||
@@ -50,7 +50,7 @@ const useCopyPromotion = () => {
|
||||
copy.rule.conditions = promotion.rule.conditions.map((cond) => ({
|
||||
operator: cond.operator,
|
||||
...removeFalsy({
|
||||
products: cond.products,
|
||||
products: cond.products.map((product) => product.id),
|
||||
product_types: cond.product_types,
|
||||
product_tags: cond.product_tags,
|
||||
product_collections: cond.product_collections,
|
||||
|
||||
Reference in New Issue
Block a user