mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 18:52:38 +03:00
fix dashboard crash (#4754)
This commit is contained in:
parent
37116a2b12
commit
ad8f49b38d
@ -19,7 +19,7 @@ import { ExclamationCircleIcon } from '@heroicons/react/24/outline'
|
||||
function fetchTopStats(site, query) {
|
||||
const q = { ...query }
|
||||
|
||||
if (!isComparisonEnabled(q.comparison)) {
|
||||
if (!isComparisonEnabled(q.comparison) && query.period !== 'realtime') {
|
||||
q.comparison = 'previous_period'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user