Skip to content

Commit 10ec4d0

Browse files
keithchongwtam2018
andauthored
Duplicate environment cards in details page (#1354) (#25)
Signed-off-by: Keith Chong <[email protected]> Co-authored-by: William Tam <[email protected]>
1 parent f78ff50 commit 10ec4d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/httpapi/conversion.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func applicationsToAppsResponse(appSet []*argoV1aplha1.Application, repoURL stri
3838
repoURL = strings.TrimSuffix(repoURL, ".git")
3939

4040
for _, app := range appSet {
41+
appName = "" // Reset at beginning of the loop so no duplicates are added
4142
if repoURL != strings.TrimSuffix(app.Spec.Source.RepoURL, ".git") {
4243
log.Printf("repoURL[%v], does not match with Source Repo URL[%v]", repoURL, strings.TrimSuffix(app.Spec.Source.RepoURL, ".git"))
4344
continue

0 commit comments

Comments
 (0)