diff --git a/src/selectors.test.ts b/src/selectors.test.ts index f55d6771..857597ee 100644 --- a/src/selectors.test.ts +++ b/src/selectors.test.ts @@ -203,9 +203,9 @@ test('select user sites with project role', () => { const roles = selectSitesAndUserRoles(store.getState(), user.id); expect(roles).toStrictEqual({ - [site1.id]: [site1, 'manager'], - [site2.id]: [site2, 'contributor'], - [site3.id]: [site3, undefined], - [site4.id]: [site4, 'contributor'], + [site1.id]: 'manager', + [site2.id]: 'contributor', + [site3.id]: undefined, + [site4.id]: 'contributor', }); }); diff --git a/src/selectors.ts b/src/selectors.ts index 843ee17a..3c7f45cc 100644 --- a/src/selectors.ts +++ b/src/selectors.ts @@ -57,7 +57,7 @@ export const selectSitesAndUserRoles = createSelector( if (site.projectId !== undefined) { role = userRoleMap[site.projectId]; } - return [site.id, [site, role]]; + return [site.id, role]; }), ); },