diff --git a/src/project/projectService.ts b/src/project/projectService.ts index 4714467f..e59bc794 100644 --- a/src/project/projectService.ts +++ b/src/project/projectService.ts @@ -55,7 +55,7 @@ const collapseProjectFields = collapseFields< if (user === null || user === undefined) { return x; } - return { ...x, [id]: { userId: user.id, userRole } }; + return { ...x, [id]: { userId: user.id, userRole, id } }; }, {} as Record, ) || {}; diff --git a/src/project/projectSlice.ts b/src/project/projectSlice.ts index 784f91ab..48c73cfa 100644 --- a/src/project/projectSlice.ts +++ b/src/project/projectSlice.ts @@ -38,6 +38,7 @@ export type SerializableSet = Record; export type ProjectMembership = { userId: string; userRole: UserRole; + id: string; }; export type Project = {