diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 1e940c581b..f1ce48e871 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -711,9 +711,11 @@
{{end}}
-
+ {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
+
+ {{end}}
- {{if .StatsIndexerStatus}}
+ {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
{{ShortSha .StatsIndexerStatus.CommitSha}}