Fix null checks on focal length
This commit is contained in:
parent
da9d0ab54b
commit
c8ae04a14d
@ -123,11 +123,11 @@ export const parsePhotoFromDb = (photoDbRaw: PhotoDb): Photo => {
|
|||||||
...photoDb,
|
...photoDb,
|
||||||
tags: photoDb.tags ?? [],
|
tags: photoDb.tags ?? [],
|
||||||
focalLengthFormatted:
|
focalLengthFormatted:
|
||||||
photoDb.focalLength !== undefined
|
photoDb.focalLength
|
||||||
? formatFocalLength(photoDb.focalLength)
|
? formatFocalLength(photoDb.focalLength)
|
||||||
: undefined,
|
: undefined,
|
||||||
focalLengthIn35MmFormatFormatted:
|
focalLengthIn35MmFormatFormatted:
|
||||||
photoDb.focalLengthIn35MmFormat !== undefined
|
photoDb.focalLengthIn35MmFormat
|
||||||
? formatFocalLength(photoDb.focalLengthIn35MmFormat)
|
? formatFocalLength(photoDb.focalLengthIn35MmFormat)
|
||||||
: undefined,
|
: undefined,
|
||||||
fNumberFormatted:
|
fNumberFormatted:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user