Fix null checks on focal length

This commit is contained in:
Sam Becker 2025-06-22 17:35:19 -05:00
parent da9d0ab54b
commit c8ae04a14d

View File

@ -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: