fix: detail panel people reactivity and iterator consumption (#29250)

This commit is contained in:
Daniel Dietzler
2026-06-22 15:47:09 +02:00
committed by GitHub
parent e918e3a313
commit c7453a67fd

View File

@@ -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(() => {