Skip to content

Commit

Permalink
fix: invalid mutation (medusajs#9371)
Browse files Browse the repository at this point in the history
  • Loading branch information
joekendal authored and panalgin committed Oct 7, 2024
1 parent db97462 commit 7293a7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const ProductMediaGallery = ({ product }: ProductMediaGalleryProps) => {

const mediaToKeep = product.images
.filter((i) => i.id !== current.id)
.map((i) => i.url)
.map((i) => ({ url: i.url }))

if (curr === media.length - 1) {
setCurr((prev) => prev - 1)
Expand Down

0 comments on commit 7293a7b

Please sign in to comment.