FIX Sequence contains no elements at OperationsStatService.GetTvdAsync

This commit is contained in:
ngfrolov 2023-07-03 10:13:21 +05:00
parent 7252c68f72
commit 14f3b16a7d
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -432,7 +432,7 @@ namespace AsbCloudInfrastructure.Services.WellOperationService
var merged = MergeArraysBySections(sectionsIds, wellOperationsPlan, wellOperationsFact).ToList();
var tvd = new List<PlanFactPredictBase<WellOperationDto>>(merged.Count);
var (Plan, Fact) = merged.First();
var (Plan, Fact) = merged.FirstOrDefault();
var dateStart = Plan?.DateStart ?? Fact!.DateStart;
int? iLastMatch = null;
int iLastFact = 0;