From 6325bbb3cfaaae2c6111311848085c00484800cc Mon Sep 17 00:00:00 2001 From: Filip Hlavac Date: Sun, 14 Jul 2024 13:15:09 +0200 Subject: [PATCH] Fix add members sorting --- src/smart-components/group/add-group/users-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smart-components/group/add-group/users-list.js b/src/smart-components/group/add-group/users-list.js index 9cb81070d..97f8c9ae8 100644 --- a/src/smart-components/group/add-group/users-list.js +++ b/src/smart-components/group/add-group/users-list.js @@ -113,7 +113,7 @@ const UsersList = ({ selectedUsers, setSelectedUsers, userLinks, usesMetaInURL, rows={createRows(userLinks, users, intl, selectedUsers, true)} sortBy={sortByState} onSort={(e, index, direction) => { - const orderBy = `${direction === 'desc' ? '-' : ''}${columns[index].key}`; + const orderBy = `${direction === 'desc' ? '-' : ''}${columns[index - 1].key}`; setSortByState({ index, direction }); fetchData({ ...pagination, filters, usesMetaInURL, orderBy }); }}