diff --git a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs index 15d6a4fec..816f0ce8b 100644 --- a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs @@ -1164,7 +1164,7 @@ namespace IRaCIS.Core.Application.Service DictionaryValue = _userInfo.IsEn_Us ? dic.Value : dic.ValueCN, }).ToListAsync(); - var result = allfront.Where(x => x.IsShow).ToList(); + var result = allfront.Where(x => x.IsShow && x.ParentId!=null).ToList(); FindParent(result, result.Select(x => x.ParentId).ToList()); void FindParent(List re, List Parentids) {