From 6fbfbfab199369fd11b032ed7f8ac58517c43f1c Mon Sep 17 00:00:00 2001 From: J Kendal <13680617+joekendal@users.noreply.github.com> Date: Mon, 30 Sep 2024 08:38:43 +0100 Subject: [PATCH] fix: invalid mutation (#9371) --- .../components/product-media-gallery/product-media-gallery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)