Skip to content

Commit b9492a9

Browse files
committed
Try to select all feedbacks by reading X-Hits
1 parent e35a094 commit b9492a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

static/app/components/feedback/list/feedbackList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default function FeedbackList() {
4040
[queryResult.data?.pages]
4141
);
4242
const checkboxState = useListItemCheckboxContext({
43-
hits: issues.length,
43+
hits: Number(
44+
queryResult.data?.pages[0]?.[2]?.getResponseHeader('X-Hits') ?? issues.length
45+
),
4446
knownIds: issues.map(issue => issue.id),
4547
queryKey: listQueryKey,
4648
});

0 commit comments

Comments
 (0)