Skip to content

Commit

Permalink
return empty policies array if none
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Mar 12, 2020
1 parent 0f9ec8d commit 7dc959c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Models/Api/Response/SyncResponseModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class SyncResponseModel : ResponseModel
Collections = collections?.Select(
c => new CollectionDetailsResponseModel(c)) ?? new List<CollectionDetailsResponseModel>();
Domains = excludeDomains ? null : new DomainsResponseModel(user, false);
Policies = policies?.Select(p => new PolicyResponseModel(p));
Policies = policies?.Select(p => new PolicyResponseModel(p)) ?? new List<PolicyResponseModel>();
}

public ProfileResponseModel Profile { get; set; }
Expand Down

0 comments on commit 7dc959c

Please sign in to comment.