fix(missing-precedents): load full set so accordion counts match the header #314

Merged
chaim merged 1 commits from worktree-mp-loadall into main 2026-06-20 13:35:06 +00:00
2 changed files with 6 additions and 2 deletions

View File

@@ -141,7 +141,11 @@ export function MissingPrecedentsTable({ status, q, legalTopic }: Props) {
status: status === "" ? undefined : status,
q,
legalTopic,
limit: 200,
// Load the full set so the accordion section counts (chair/digest/other)
// reflect the real totals — at limit:200 the page showed only the first
// page (e.g. 16 of 106 committee rows) while the header showed the true
// count, so the sections didn't sum to it. Backend caps at 2000.
limit: 1000,
});
const del = useDeleteMissingPrecedent();

View File

@@ -7877,7 +7877,7 @@ async def missing_precedents_list(
case_id=case_uuid,
legal_topic=legal_topic.strip() or None,
q=q.strip() or None,
limit=max(1, min(int(limit), 500)),
limit=max(1, min(int(limit), 2000)),
offset=max(0, int(offset)),
)
# Counters useful for the sidebar badge.