forked from tangled.org/core
Monorepo for Tangled

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 <me@oppi.li>

oppi.li 7db59ccc 62e5d0e4

verified
Changed files
+1 -1
appview
pages
templates
repo
pulls
+1 -1
appview/pages/templates/repo/pulls/pulls.html
··· 105 105 </span> 106 106 107 107 {{ $pipeline := index $.Pipelines .LatestSha }} 108 - {{ if $pipeline }} 108 + {{ if and $pipeline $pipeline.Id }} 109 109 <span class="before:content-['·']"></span> 110 110 {{ template "repo/pipelines/fragments/pipelineSymbol" $pipeline }} 111 111 {{ end }}