From 8e8e17cfa16f0cd6a3e343fd1590f8a9d57f92d6 Mon Sep 17 00:00:00 2001 From: Sergey Smolnikov Date: Fri, 8 Nov 2024 14:19:32 +0100 Subject: [PATCH] Fixed environment branch info --- api/models/environment_summary.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/models/environment_summary.go b/api/models/environment_summary.go index c93b407b..d048324d 100644 --- a/api/models/environment_summary.go +++ b/api/models/environment_summary.go @@ -27,9 +27,6 @@ func BuildEnvironmentSummaryList(rr *radixv1.RadixRegistration, ra *radixv1.Radi deploymentSummary := getActiveDeploymentSummary(ra.GetName(), e.Name, rdList) buildFromBranch := e.Build.From - if deploymentSummary != nil && len(deploymentSummary.BuiltFromBranch) > 0 { - buildFromBranch = deploymentSummary.BuiltFromBranch - } env := &environmentModels.EnvironmentSummary{ Name: e.Name, BranchMapping: buildFromBranch,