forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

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
···
</span>
{{ $pipeline := index $.Pipelines .LatestSha }}
-
{{ if $pipeline }}
+
{{ if and $pipeline $pipeline.Id }}
<span class="before:content-['·']"></span>
{{ template "repo/pipelines/fragments/pipelineSymbol" $pipeline }}
{{ end }}