diff --git a/packages/admin/dashboard/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx b/packages/admin/dashboard/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx index 260af1f461..3bdb10d846 100644 --- a/packages/admin/dashboard/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +++ b/packages/admin/dashboard/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx @@ -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)