Fix photo date logic check
This commit is contained in:
parent
aab36e2679
commit
c12b1ca819
@ -201,7 +201,7 @@ export const dateRangeForPhotos = (
|
|||||||
let end = '';
|
let end = '';
|
||||||
let description = '';
|
let description = '';
|
||||||
|
|
||||||
if (explicitDateRange || photos.length >= 0) {
|
if (explicitDateRange || photos.length > 0) {
|
||||||
const photosSorted = sortPhotosByDate(photos);
|
const photosSorted = sortPhotosByDate(photos);
|
||||||
start = formatDateFromPostgresString(
|
start = formatDateFromPostgresString(
|
||||||
explicitDateRange?.start ?? photosSorted[photos.length - 1].takenAtNaive,
|
explicitDateRange?.start ?? photosSorted[photos.length - 1].takenAtNaive,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user