mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 09:15:34 +03:00
fix: regression: sort day by fileCreatedAt again (#18732)
* fix: regression: sort day by fileCreatedAt again * lint * e2e test * inline function * e2e * Address comments. Drop dayGroup and timezone in favor of localOffsetMinutes * lint and some api-doc * lint, more api-doc * format * Move minutes to fractional hours * make sql * merge/conflict * merge fallout, review comments * spelling * drop offset from returned date * move description into decorator where possible, regen api
This commit is contained in:
@@ -46,16 +46,16 @@ export const getAltText = derived(t, ($t) => {
|
||||
});
|
||||
const hasPlace = asset.city && asset.country;
|
||||
|
||||
const peopleCount = asset.people.length;
|
||||
const peopleCount = asset.people?.length ?? 0;
|
||||
const isVideo = asset.isVideo;
|
||||
|
||||
const values = {
|
||||
date,
|
||||
city: asset.city,
|
||||
country: asset.country,
|
||||
person1: asset.people[0],
|
||||
person2: asset.people[1],
|
||||
person3: asset.people[2],
|
||||
person1: asset.people?.[0],
|
||||
person2: asset.people?.[1],
|
||||
person3: asset.people?.[2],
|
||||
isVideo,
|
||||
additionalCount: peopleCount > 3 ? peopleCount - 2 : 0,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user