From dd18bac5ecdf721b667a11d2af3bca238c3ce73b Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 7 Apr 2026 22:12:15 +0200 Subject: [PATCH] fix: tighten relationship chip typing --- src/components/NoteItem.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/NoteItem.tsx b/src/components/NoteItem.tsx index 4875b2e7..1a2ace4a 100644 --- a/src/components/NoteItem.tsx +++ b/src/components/NoteItem.tsx @@ -72,8 +72,8 @@ function formatChipValue(value: unknown): string | null { interface PropertyChipValue { label: string - noteIcon?: string | null - typeIcon?: string | null + noteIcon: string | null + typeIcon: string | null } function resolveChipValues( @@ -105,10 +105,10 @@ function resolveChipValues( return val .map((v) => formatChipValue(v)) .filter((v): v is string => v !== null) - .map((label) => ({ label })) + .map((label) => ({ label, noteIcon: null, typeIcon: null })) } const formatted = formatChipValue(val) - return formatted ? [{ label: formatted }] : [] + return formatted ? [{ label: formatted, noteIcon: null, typeIcon: null }] : [] } function PropertyChipIcon({ noteIcon, typeIcon }: { noteIcon?: string | null; typeIcon?: string | null }) {