diff --git a/src/Infrastructure.EntityFramework/Repositories/CollectionRepository.cs b/src/Infrastructure.EntityFramework/Repositories/CollectionRepository.cs index ce5b07b1c0..1d18d5311f 100644 --- a/src/Infrastructure.EntityFramework/Repositories/CollectionRepository.cs +++ b/src/Infrastructure.EntityFramework/Repositories/CollectionRepository.cs @@ -188,13 +188,11 @@ public class CollectionRepository : Repository new Tuple( @@ -202,7 +200,6 @@ public class CollectionRepository : Repository g.Key == collection.Id)? .Select(g => new CollectionAccessSelection { Id = g.GroupId, @@ -210,7 +207,6 @@ public class CollectionRepository : Repository(), Users = users - .FirstOrDefault(u => u.Key == collection.Id)? .Select(c => new CollectionAccessSelection { Id = c.OrganizationUserId, @@ -232,13 +228,11 @@ public class CollectionRepository : Repository new Tuple( @@ -246,7 +240,6 @@ public class CollectionRepository : Repository g.Key == collection.Id)? .Select(g => new CollectionAccessSelection { Id = g.GroupId, @@ -254,7 +247,6 @@ public class CollectionRepository : Repository(), Users = users - .FirstOrDefault(u => u.Key == collection.Id)? .Select(c => new CollectionAccessSelection { Id = c.OrganizationUserId,