diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs index 9b9b4bfda..cf871e269 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs @@ -276,7 +276,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate tableAnswerList.Where(x => x.RowId == item.Id).ForEach(x => { - x.Answer = x.Answer.IsNotNullOrEmpty() ? + x.Answer = x.Answer.IsNullOrEmpty() ? historyTableAnswerList.Where(y => y.RowId == historyRow.Id && y.TableQuestionId == x.TableQuestionId).Select(x => x.Answer).FirstOrDefault()??string.Empty : x.Answer; });