Skip to content

Commit dee31f3

Browse files
fix: extras sections showing when not defined
1 parent 04305a0 commit dee31f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/resources/views/service.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ <h1 class="text-xl font-bold md:inline-block md:mr-2 text-avocado-800" >{{ .Resu
88

99
<div class="h-64 md:h-96 w-full border rounded-md shadow-md mb-6">{{ .Graph }}</div>
1010

11+
{{- if .Extras }}
1112
<div class="w-full border rounded-md shadow-md pt-4 mb-6">
1213
{{- range $name, $graph := .Extras }}
1314
<h2 class="text-center text-avocado-800">{{ $name }}</h2>
1415
<div class="h-64 md:h-96 w-full">{{ $graph }}</div>
1516
{{- end }}
1617
</div>
18+
{{- end }}
1719
</div>
1820
{{- end }}
1921
{{- end }}

0 commit comments

Comments
 (0)