Merge pull request #3950 from AymanAlSuleihi/fix/compare-metrics
Fix metrics bar not updating on compare mode switch
This commit is contained in:
3 files changed
+11
-4
No files matched your search
@@ -31,7 +31,9 @@ export async function GET(
|
||||
|
||||
const data = await getWebsiteStats(websiteId, filters);
|
||||
|
||||
const { startDate, endDate } = getCompareDate('prev', filters.startDate, filters.endDate);
|
||||
const compare = filters.compare ?? 'prev';
|
||||
|
||||
const { startDate, endDate } = getCompareDate(compare, filters.startDate, filters.endDate);
|
||||
|
||||
const comparison = await getWebsiteStats(websiteId, {
|
||||
...filters,
|
||||
|
||||
Reference in new issue
Block a user