diff --git a/src/components/modal/EditMetadataModal.vue b/src/components/modal/EditMetadataModal.vue index 16c31a23..d8534aff 100644 --- a/src/components/modal/EditMetadataModal.vue +++ b/src/components/modal/EditMetadataModal.vue @@ -180,7 +180,7 @@ export default defineComponent({ } // EXIF update values - const exifUpdates = new Map(); + const exifs = new Map(); for (const p of this.photos!) { // Basic EXIF fields const raw: IExif = JSON.parse(JSON.stringify(exifResult)); @@ -192,7 +192,7 @@ export default defineComponent({ raw.CreateDate = date; } - exifUpdates.set(p.fileid, raw); + exifs.set(p.fileid, raw); } // Update exif fields @@ -202,7 +202,7 @@ export default defineComponent({ try { // Update EXIF if required - const raw = exifUpdates.get(fileid) ?? {}; + const raw = exifs.get(fileid) ?? {}; if (Object.keys(raw).length > 0) { await axios.patch(API.IMAGE_SETEXIF(fileid), { raw }); dirty = true;