mirror of
https://github.com/bitwarden/server
synced 2025-12-23 19:53:40 +00:00
null coalesce collections to an empty array (#6381)
This commit is contained in:
@@ -31,7 +31,7 @@ public class MemberCreateRequestModel : MemberUpdateRequestModel
|
|||||||
{
|
{
|
||||||
Emails = new[] { Email },
|
Emails = new[] { Email },
|
||||||
Type = Type.Value,
|
Type = Type.Value,
|
||||||
Collections = Collections?.Select(c => c.ToCollectionAccessSelection()).ToList(),
|
Collections = Collections?.Select(c => c.ToCollectionAccessSelection())?.ToList() ?? [],
|
||||||
Groups = Groups
|
Groups = Groups
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user