diff --git a/pkg/site/page.go b/pkg/site/page.go index 3a6cdb9..5477fda 100644 --- a/pkg/site/page.go +++ b/pkg/site/page.go @@ -87,13 +87,13 @@ func (h *Handlers) collectionPage(ctx context.Context, id string, refresh bool) } if result.RuleResults == nil { - p.Notification = template.HTML(`Gathering data ...`) + p.Notification = `Gathering data ...` } else if p.ResultAge > h.warnAge { p.Notification = template.HTML(fmt.Sprintf(`Refreshing data in the background. Displayed data may be up to %s old. Use Shift-Reload to force a data refresh at any time.`, humanDuration(time.Since(result.OldestInput)))) p.Stale = true } - if result.Collection.Velocity != "" { + if result.Collection != nil && result.Collection.Velocity != "" { p.VelocityStats = h.updater.Lookup(ctx, result.Collection.Velocity, false) } else { for _, s := range sts {