IO-1653 Include Other images when downloading

This commit is contained in:
Patrick Fic
2022-01-19 16:12:16 -08:00
parent 1966e91463
commit 83255cd316

View File

@@ -36,7 +36,7 @@ export function JobsDocumentsDownloadButton({
);
const imagesToDownload = [
...galleryImages.images.filter((image) => image.isSelected),
// ...galleryImages.other.filter((image) => image.isSelected),
...galleryImages.other.filter((image) => image.isSelected),
];
function downloadProgress(progressEvent) {
@@ -123,6 +123,7 @@ export function JobsDocumentsDownloadButton({
a.click();
}
};
console.log("🚀 ~ file: jobs-document-gallery.download.component.jsx ~ line 131 ~ imagesToDownload", imagesToDownload)
return (
<>
<Button