diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 569a576ce6826..b247e85fa3e86 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -680,9 +680,11 @@
{{end}}
-
+ {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
+
+ {{end}}
- {{if .StatsIndexerStatus}}
+ {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
{{ShortSha .StatsIndexerStatus.CommitSha}}