From 3481fd76c13d3b73290e84fbc66cbd73a1c2f67a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 18 Nov 2022 14:37:05 -0500 Subject: [PATCH] add null check logic from ea view (#2423) --- .../Repositories/Queries/EmergencyAccessDetailsViewQuery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EmergencyAccessDetailsViewQuery.cs b/src/Infrastructure.EntityFramework/Repositories/Queries/EmergencyAccessDetailsViewQuery.cs index 2ad2149ae..e57089fca 100644 --- a/src/Infrastructure.EntityFramework/Repositories/Queries/EmergencyAccessDetailsViewQuery.cs +++ b/src/Infrastructure.EntityFramework/Repositories/Queries/EmergencyAccessDetailsViewQuery.cs @@ -29,7 +29,7 @@ public class EmergencyAccessDetailsViewQuery : IQuery CreationDate = x.ea.CreationDate, RevisionDate = x.ea.RevisionDate, GranteeName = x.grantee.Name, - GranteeEmail = x.grantee.Email, + GranteeEmail = x.grantee.Email ?? x.ea.Email, GrantorName = x.grantor.Name, GrantorEmail = x.grantor.Email, });