Merge pull request #2135 from nextcloud/artonge/fix/exif_display_conditions

Fix EXIF display conditions
This commit is contained in:
Louis 2023-11-16 19:34:33 +01:00 committed by GitHub
commit c350bdafef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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',
}
},
@ -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
}