null coalesce collections to an empty array (#6381)

This commit is contained in:
Kyle Spearrin 2025-09-25 19:05:48 -04:00 committed by GitHub
parent 6466c00acd
commit 0df22ff581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ public class MemberCreateRequestModel : MemberUpdateRequestModel
{
Emails = new[] { Email },
Type = Type.Value,
Collections = Collections?.Select(c => c.ToCollectionAccessSelection()).ToList(),
Collections = Collections?.Select(c => c.ToCollectionAccessSelection())?.ToList() ?? [],
Groups = Groups
};