From a9f52198b9af359dbec8cb3026e175c677ed5084 Mon Sep 17 00:00:00 2001 From: joekendal <13680617+joekendal@users.noreply.github.com> Date: Sun, 29 Sep 2024 22:33:14 +0100 Subject: [PATCH] fix: invalid mutation --- .../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 260af1f4617a5..3bdb10d84620b 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)