diff --git a/admin-compliance/app/sdk/agent/_components/ChecklistView.tsx b/admin-compliance/app/sdk/agent/_components/ChecklistView.tsx index d5e75b6..ae8387d 100644 --- a/admin-compliance/app/sdk/agent/_components/ChecklistView.tsx +++ b/admin-compliance/app/sdk/agent/_components/ChecklistView.tsx @@ -27,7 +27,7 @@ const DOC_TYPE_LABELS: Record = { } export function ChecklistView({ results }: { results: DocResult[] }) { - const [expanded, setExpanded] = useState(null) + const [expanded, setExpanded] = useState(null) if (!results || results.length === 0) return null @@ -43,7 +43,7 @@ export function ChecklistView({ results }: { results: DocResult[] }) {
{results.map((r, i) => { - const isExp = expanded === r.url + const isExp = expanded === i const pct = r.completeness_pct const barColor = pct === 100 ? 'bg-green-500' : pct >= 80 ? 'bg-green-400' : pct >= 50 ? 'bg-yellow-500' : 'bg-red-500' const typeLabel = DOC_TYPE_LABELS[r.doc_type] || r.doc_type @@ -51,7 +51,7 @@ export function ChecklistView({ results }: { results: DocResult[] }) { return (