From 7d032c17f0ba6741d52175c8f06d5ede4480fa25 Mon Sep 17 00:00:00 2001 From: Jack Wong <108699279+bergomi02@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:34:48 -0800 Subject: [PATCH] fix empty site id icon (#2640) --- prime-dotnet-webapi/Services/CommunitySiteService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-dotnet-webapi/Services/CommunitySiteService.cs b/prime-dotnet-webapi/Services/CommunitySiteService.cs index c5779d38fd..a1943801a2 100644 --- a/prime-dotnet-webapi/Services/CommunitySiteService.cs +++ b/prime-dotnet-webapi/Services/CommunitySiteService.cs @@ -119,7 +119,7 @@ private static void GroupSitesToOrgVisually(PaginatedList GetDuplicatePecCount(int? careSettingCode, string pec, int originalSiteId) { return await _context.Sites - .Where(s => s.PEC == pec && s.CareSettingCode == careSettingCode && originalSiteId != s.Id) + .Where(s => s.PEC != null && s.PEC == pec && s.CareSettingCode == careSettingCode && originalSiteId != s.Id) .CountAsync(); }