fix dashboard crash (#4754)

This commit is contained in:
RobertJoonas 2024-10-29 11:59:58 +01:00 committed by GitHub
parent 37116a2b12
commit ad8f49b38d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'
}