mirror of https://github.com/nextcloud/photos
Merge pull request #2135 from nextcloud/artonge/fix/exif_display_conditions
Fix EXIF display conditions
This commit is contained in:
commit
c350bdafef
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -78,7 +78,6 @@ export default {
|
|||
// The zoom level of the map in the new openstreetmap tab upon
|
||||
// Opening the link
|
||||
linkZoom: 18,
|
||||
|
||||
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
|
||||
}
|
||||
},
|
||||
|
@ -138,7 +137,7 @@ export default {
|
|||
* @return {number}
|
||||
*/
|
||||
focal() {
|
||||
if (!this.exif) {
|
||||
if (!this.exif?.FNumber) {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -149,7 +148,7 @@ export default {
|
|||
* @return {number}
|
||||
*/
|
||||
focalLength() {
|
||||
if (!this.exif) {
|
||||
if (!this.exif?.FocalLength) {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -166,7 +165,7 @@ export default {
|
|||
* @return {string}
|
||||
*/
|
||||
normalizedExposureTime() {
|
||||
if (!this.exif) {
|
||||
if (!this.exif?.ExposureTime) {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue