Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use

Manav Rathi2fee6e87f96c
diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
index b2bb6aed69..a9bbfa4ba3 100644
--- a/web/packages/gallery/components/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -663,6 +663,8 @@ const CreationTime: React.FC<CreationTimeProps> = ({
allowEdits,
scheduleUpdate,
}) => {
+ const { onGenericError } = useBaseContext();
+
const [loading, setLoading] = useState(false);
const [isInEditMode, setIsInEditMode] = useState(false);
@@ -705,7 +707,7 @@ const CreationTime: React.FC<CreationTimeProps> = ({
scheduleUpdate();
}
} catch (e) {
- log.error("failed to update creationTime", e);
+ onGenericError(e);
} finally {
closeEditMode();
setLoading(false);