From c6bf8bcb326c86b78b334deac9db1c17fa06ecd5 Mon Sep 17 00:00:00 2001 From: Yossi Tamari Date: Tue, 23 Jul 2024 14:26:59 -0700 Subject: [PATCH] fixed file without a task --- .../API/EMBC.ESS/Resources/Evacuations/EvacuationRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ess/src/API/EMBC.ESS/Resources/Evacuations/EvacuationRepository.cs b/ess/src/API/EMBC.ESS/Resources/Evacuations/EvacuationRepository.cs index 4e8fe0e29..dd4db074b 100644 --- a/ess/src/API/EMBC.ESS/Resources/Evacuations/EvacuationRepository.cs +++ b/ess/src/API/EMBC.ESS/Resources/Evacuations/EvacuationRepository.cs @@ -139,7 +139,7 @@ public async Task Update(EssContext essContext, EvacuationFile evacuatio AddNeedsAssessment(essContext, file, file.era_CurrentNeedsAssessmentid); - AssignToTask(essContext, file, evacuationFile.TaskId ?? currentFile.era_TaskId.era_name); + AssignToTask(essContext, file, evacuationFile.TaskId ?? currentFile.era_TaskId?.era_name); await essContext.SaveChangesAsync(ct);