fix(stammbaum): guard inferred-relationship badge to single-receiver documents only
Some checks failed
CI / Unit & Component Tests (push) Failing after 3m18s
CI / OCR Service Tests (push) Successful in 42s
CI / Backend Unit Tests (push) Failing after 3m11s
CI / Unit & Component Tests (pull_request) Failing after 3m15s
CI / OCR Service Tests (pull_request) Successful in 31s
CI / Backend Unit Tests (pull_request) Failing after 3m5s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-28 17:09:46 +02:00
parent 31255642c5
commit 054c9d5dda

View File

@@ -113,7 +113,12 @@ function getFullName(person: Person): string {
{#each displayedReceivers as receiver, i (receiver.id)}
{@render personCard(
receiver,
i === 0 ? (inferredRelationship?.labelFromB ?? null) : null
// Badge only shown when there is exactly one receiver — with multiple
// receivers the inferred label is computed from the sender's viewpoint
// and cannot be attributed to a specific receiver.
i === 0 && receivers.length === 1
? (inferredRelationship?.labelFromB ?? null)
: null
)}
{/each}
</div>