diff --git a/lib/plausible/stats/clickhouse.ex b/lib/plausible/stats/clickhouse.ex index 37dfad3c9..2142885d2 100644 --- a/lib/plausible/stats/clickhouse.ex +++ b/lib/plausible/stats/clickhouse.ex @@ -762,6 +762,7 @@ defmodule Plausible.Stats.Clickhouse do end) end + def last_24h_visitors([]), do: %{} def last_24h_visitors(sites) do domains = Enum.map(sites, & &1.domain) diff --git a/lib/plausible_web/templates/site/index.html.eex b/lib/plausible_web/templates/site/index.html.eex index 034cdf810..474f64abc 100644 --- a/lib/plausible_web/templates/site/index.html.eex +++ b/lib/plausible_web/templates/site/index.html.eex @@ -7,6 +7,10 @@