Skip to content

Commit 5c36ecb

Browse files
committed
Fix EXIF display conditions
Signed-off-by: Louis Chemineau <[email protected]>
1 parent b9b84c6 commit 5c36ecb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/views/PhotosTab.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export default {
7878
// The zoom level of the map in the new openstreetmap tab upon
7979
// Opening the link
8080
linkZoom: 18,
81-
8281
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
8382
}
8483
},
@@ -138,7 +137,7 @@ export default {
138137
* @return {number}
139138
*/
140139
focal() {
141-
if (!this.exif) {
140+
if (!this.exif?.FNumber) {
142141
return 0
143142
}
144143
@@ -149,7 +148,7 @@ export default {
149148
* @return {number}
150149
*/
151150
focalLength() {
152-
if (!this.exif) {
151+
if (!this.exif?.FocalLength) {
153152
return 0
154153
}
155154
@@ -166,7 +165,7 @@ export default {
166165
* @return {string}
167166
*/
168167
normalizedExposureTime() {
169-
if (!this.exif) {
168+
if (!this.exif?.ExposureTime) {
170169
return 0
171170
}
172171
@@ -218,7 +217,7 @@ export default {
218217
* @param {object} fileInfo the current file FileInfo
219218
*/
220219
async update(fileInfo) {
221-
this.fileInfo = fileInfo
220+
this.$set(this, 'fileInfo', fileInfo)
222221
},
223222
224223
t,

0 commit comments

Comments
 (0)