Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] fix fix time custom same as original by not doing anything (#12185)

aspizu19c7eac6eef1
diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx
index 6865aa4fa0..e8d3716f1e 100644
--- a/web/apps/photos/src/components/FixCreationTime.tsx
+++ b/web/apps/photos/src/components/FixCreationTime.tsx
@@ -315,12 +315,12 @@ const updateFileDate = async (
let newDate: ParsedMetadataDate | undefined;
if (fixOption == "custom") {
- newDate = {
- dateTime: customDate!.dateTime,
+ newDate = customDate && {
+ dateTime: customDate.dateTime,
// The picker reports this computer's offset, not the photo's, so
// leave the offset unset.
offset: undefined,
- timestamp: customDate!.timestamp,
+ timestamp: customDate.timestamp,
};
} else if (fixOption == "file-name") {
const editedTime = tryParseEpochMicrosecondsFromFileName(