From 9e8e2a97d1fc9d6ee3fe59835894c7f2e127b0ac Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Mon, 13 Dec 2021 17:39:02 +0100
Subject: [PATCH] Fix group members pagination on admin group profile view

Closes #965

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 js/src/views/Admin/AdminGroupProfile.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/js/src/views/Admin/AdminGroupProfile.vue b/js/src/views/Admin/AdminGroupProfile.vue
index 8248214a8..43e85e879 100644
--- a/js/src/views/Admin/AdminGroupProfile.vue
+++ b/js/src/views/Admin/AdminGroupProfile.vue
@@ -103,7 +103,7 @@
         :aria-page-label="$t('Page')"
         :aria-current-label="$t('Current page')"
         :total="group.members.total"
-        :per-page="EVENTS_PER_PAGE"
+        :per-page="MEMBERS_PER_PAGE"
         @page-change="onMembersPageChange"
       >
         <b-table-column
@@ -329,6 +329,8 @@ const MEMBERS_PER_PAGE = 10;
           organizedEventsLimit: EVENTS_PER_PAGE,
           postsPage: this.postsPage,
           postsLimit: POSTS_PER_PAGE,
+          membersLimit: MEMBERS_PER_PAGE,
+          membersPage: this.membersPage,
         };
       },
       skip() {