Merge pull request 'fix(missing-precedents): load full set so accordion counts match the header' (#314) from worktree-mp-loadall into main
This commit was merged in pull request #314.
This commit is contained in:
@@ -141,7 +141,11 @@ export function MissingPrecedentsTable({ status, q, legalTopic }: Props) {
|
|||||||
status: status === "" ? undefined : status,
|
status: status === "" ? undefined : status,
|
||||||
q,
|
q,
|
||||||
legalTopic,
|
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();
|
const del = useDeleteMissingPrecedent();
|
||||||
|
|
||||||
|
|||||||
@@ -7877,7 +7877,7 @@ async def missing_precedents_list(
|
|||||||
case_id=case_uuid,
|
case_id=case_uuid,
|
||||||
legal_topic=legal_topic.strip() or None,
|
legal_topic=legal_topic.strip() or None,
|
||||||
q=q.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)),
|
offset=max(0, int(offset)),
|
||||||
)
|
)
|
||||||
# Counters useful for the sidebar badge.
|
# Counters useful for the sidebar badge.
|
||||||
|
|||||||
Reference in New Issue
Block a user