From 7db59cccbe43e4225f8a0c4d706c4cc3c8176bbe Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 4 Aug 2025 17:17:48 +0100 Subject: [PATCH] appview/pages: hide non-existent pipelines from pulls view go templates decides that invalid map index in templates should result in the zero value for some reason. Signed-off-by: oppiliappan --- appview/pages/templates/repo/pulls/pulls.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appview/pages/templates/repo/pulls/pulls.html b/appview/pages/templates/repo/pulls/pulls.html index 840372cb..973bdb5f 100644 --- a/appview/pages/templates/repo/pulls/pulls.html +++ b/appview/pages/templates/repo/pulls/pulls.html @@ -105,7 +105,7 @@ {{ $pipeline := index $.Pipelines .LatestSha }} - {{ if $pipeline }} + {{ if and $pipeline $pipeline.Id }} {{ template "repo/pipelines/fragments/pipelineSymbol" $pipeline }} {{ end }} -- 2.51.2