🏷️(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:
Anthony LC
2024-06-27 17:50:23 +02:00
committed by Anthony LC
parent a400c12037
commit 5c87bd74cd
2 changed files with 6 additions and 6 deletions

View File

@@ -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',

View File

@@ -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',
};