Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EXIF display conditions #2135

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-sidebar.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 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
Loading