fix(frontend): exactOptionalPropertyTypes on provider props

p?: Provider rejects an explicit undefined under
exactOptionalPropertyTypes — generated schema fields are optional.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Tomas DvorakandDevin committed 2026-09-22 18:28:48 +02:00
1 parent 8ff13f74f7
commit 10d9171031
1 file changed
+2 -2
+2 -2
View File
@@ -33,7 +33,7 @@ function fmtDate(iso: string | null | undefined) {
} }
// Vendor chip shown next to records and inside the provider strip. // Vendor chip shown next to records and inside the provider strip.
function ProviderBadge({ p }: { p?: Provider | null }) { function ProviderBadge({ p }: { p: Provider | null | undefined }) {
if (!p?.name) return null; if (!p?.name) return null;
return ( return (
<span className="inline-flex shrink-0 items-center gap-1.5 rounded-full border border-border/60 bg-bg px-2 py-0.5"> <span className="inline-flex shrink-0 items-center gap-1.5 rounded-full border border-border/60 bg-bg px-2 py-0.5">
@@ -45,7 +45,7 @@ function ProviderBadge({ p }: { p?: Provider | null }) {
); );
} }
function ProvTile({ label, p }: { label: string; p?: Provider }) { function ProvTile({ label, p }: { label: string; p: Provider | undefined }) {
return ( return (
<div className="flex min-w-0 items-center gap-2.5 rounded-[9px] border border-border/60 bg-bg px-3 py-2.5"> <div className="flex min-w-0 items-center gap-2.5 rounded-[9px] border border-border/60 bg-bg px-3 py-2.5">
{p?.icon {p?.icon