mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: detail panel people reactivity and iterator consumption (#29250)
This commit is contained in:
parent
e918e3a313
commit
c7453a67fd
1 changed files with 3 additions and 2 deletions
|
|
@ -24,7 +24,8 @@ class FaceManager {
|
|||
});
|
||||
|
||||
readonly people = $derived.by(() => {
|
||||
const people = new SvelteMap<string, PersonResponseDto>();
|
||||
// eslint-disable-next-line svelte/prefer-svelte-reactivity
|
||||
const people = new Map<string, PersonResponseDto>();
|
||||
|
||||
for (const face of this.data) {
|
||||
if (face.person) {
|
||||
|
|
@ -32,7 +33,7 @@ class FaceManager {
|
|||
}
|
||||
}
|
||||
|
||||
return people.values();
|
||||
return Array.from(people.values());
|
||||
});
|
||||
|
||||
readonly facesByPersonId = $derived.by(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue