diff --git a/src/components/elements/ImageGallery/ImageGalleryItem.tsx b/src/components/elements/ImageGallery/ImageGalleryItem.tsx index 74c82e115..80809a089 100644 --- a/src/components/elements/ImageGallery/ImageGalleryItem.tsx +++ b/src/components/elements/ImageGallery/ImageGalleryItem.tsx @@ -92,7 +92,7 @@ const ImageGalleryItem: FC = ({ try { const response = await mutateAsync({ body: { - imageUrl: data.fullImageUrl + uuid: data.uuid } }); @@ -107,7 +107,7 @@ const ImageGalleryItem: FC = ({ const link = document.createElement("a"); link.href = url; - link.download = "image.jpg"; + link.download = data?.raw?.file_name ? data?.raw?.file_name : "image.jpg"; document.body.appendChild(link); link.click(); diff --git a/src/generated/apiComponents.ts b/src/generated/apiComponents.ts index 35abb608f..feabb6412 100644 --- a/src/generated/apiComponents.ts +++ b/src/generated/apiComponents.ts @@ -29769,7 +29769,7 @@ export type PostV2ExportImageRequestBody = { /** * The URL of the image to be downloaded. */ - imageUrl: string; + uuid: string; }; export type PostV2ExportImageVariables = {