From 82330bda96d25b292b24872df06f40555f4e6bd3 Mon Sep 17 00:00:00 2001 From: Wolfgang Meyers Date: Thu, 27 Jul 2023 20:45:39 -0700 Subject: [PATCH] Keep the updated_at timestamp --- src/pages/SavedImagesPage.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/SavedImagesPage.tsx b/src/pages/SavedImagesPage.tsx index d4913a6..eadc91b 100644 --- a/src/pages/SavedImagesPage.tsx +++ b/src/pages/SavedImagesPage.tsx @@ -259,10 +259,7 @@ export const SavedImagesPage: FC = ({ try { for (const imageId of imagesToDownload) { const image = await dropboxHelper.downloadImage(imageId); - await localImages.saveImage({ - ...image, - updated_at: moment().valueOf(), - }); + await localImages.saveImage(image); progress++; setProgress(progress / imagesToDownload.length); } @@ -271,6 +268,7 @@ export const SavedImagesPage: FC = ({ console.error(e); } finally { setImportingImages(false); + window.location.reload(); } } };