Skip to content

Commit

Permalink
fix: don't paginate reviewers list
Browse files Browse the repository at this point in the history
  • Loading branch information
sgfost committed Oct 28, 2024
1 parent 9c60842 commit e3ef06d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions django/library/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def has_object_permission(self, request, view, obj: PeerReviewer):

class PeerReviewerViewSet(CommonViewSetMixin, NoDeleteViewSet):
queryset = PeerReviewer.objects.all().order_by("member_profile__user__last_name")
pagination_class = None
serializer_class = PeerReviewerSerializer
permission_classes = (PeerReviewerPermission,)
filter_backends = (PeerReviewerFilter,)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ReviewerSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const fetchMatchingReviewers = useDebounceFn(async (query: string) => {
isLoading.value = true;
try {
const response = await findReviewers({ query });
matchingReviewers.value = response.data.results;
matchingReviewers.value = response.data;
} catch (e) {
// no-op
} finally {
Expand Down

0 comments on commit e3ef06d

Please sign in to comment.