mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-03 15:47:30 +01:00
Merge branch 'dev' into analytics
This commit is contained in:
commit
c0e79f5e9d
@ -181,8 +181,8 @@ export function getDateArray(data, startDate, endDate, unit) {
|
||||
const n = diff(endDate, startDate) + 1;
|
||||
|
||||
function findData(date) {
|
||||
const d = data.find(({ t }) => {
|
||||
return normalize(getDateFromString(t)).getTime() === date.getTime();
|
||||
const d = data.find(({ x, t }) => {
|
||||
return normalize(getDateFromString(x || t)).getTime() === date.getTime();
|
||||
});
|
||||
|
||||
return d?.y || 0;
|
||||
|
Loading…
Reference in New Issue
Block a user