🏷️(frontend) adapt ordering name
Some ordering names changed with a prefix "user__". We adapt the ordering name in the frontend to match the backend.
This commit is contained in:
@@ -221,10 +221,10 @@ describe('MemberGrid', () => {
|
||||
});
|
||||
|
||||
it.each([
|
||||
['name', 'Names'],
|
||||
['email', 'Emails'],
|
||||
['role', 'Roles'],
|
||||
])('checks the sorting', async (ordering, header_name) => {
|
||||
['Names', 'user__name'],
|
||||
['Emails', 'user__email'],
|
||||
['Roles', 'role'],
|
||||
])('checks the sorting of %s', async (header_name, ordering) => {
|
||||
const mockedData = [
|
||||
{
|
||||
id: '123',
|
||||
|
||||
@@ -30,8 +30,8 @@ type SortModelItem = {
|
||||
};
|
||||
|
||||
const defaultOrderingMapping: Record<string, string> = {
|
||||
'user.name': 'name',
|
||||
'user.email': 'email',
|
||||
'user.name': 'user__name',
|
||||
'user.email': 'user__email',
|
||||
localizedRole: 'role',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user