diff --git a/src/components/uploadsGalleryModal/uploadsGalleryModal.tsx b/src/components/uploadsGalleryModal/uploadsGalleryModal.tsx index 58fd1b9f3..976d543da 100644 --- a/src/components/uploadsGalleryModal/uploadsGalleryModal.tsx +++ b/src/components/uploadsGalleryModal/uploadsGalleryModal.tsx @@ -127,10 +127,10 @@ export const UploadsGalleryModal = forwardRef(({ for (const index of map.keys()) { console.log(index) const item = mediaUploads[index] - + const hhash = item.url.split('/').pop() data.push({ url: item.url, - hash: item.url.split('/').pop() + hash: hhash.replace(/\.[^/.]+$/, "") }) }