Skip to content

Commit

Permalink
Fix EXIF display conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Nov 16, 2023
1 parent b9b84c6 commit 5c36ecb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/views/PhotosTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export default {
// The zoom level of the map in the new openstreetmap tab upon
// Opening the link
linkZoom: 18,

attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
}
},
Expand Down Expand Up @@ -138,7 +137,7 @@ export default {
* @return {number}
*/
focal() {
if (!this.exif) {
if (!this.exif?.FNumber) {
return 0
}

Expand All @@ -149,7 +148,7 @@ export default {
* @return {number}
*/
focalLength() {
if (!this.exif) {
if (!this.exif?.FocalLength) {
return 0
}

Expand All @@ -166,7 +165,7 @@ export default {
* @return {string}
*/
normalizedExposureTime() {
if (!this.exif) {
if (!this.exif?.ExposureTime) {
return 0
}

Expand Down Expand Up @@ -218,7 +217,7 @@ export default {
* @param {object} fileInfo the current file FileInfo
*/
async update(fileInfo) {
this.fileInfo = fileInfo
this.$set(this, 'fileInfo', fileInfo)
},

t,
Expand Down

0 comments on commit 5c36ecb

Please sign in to comment.