MySQL query optimization. Added loading component.

This commit is contained in:
Mike Cao committed 2020-08-27 23:45:37 -07:00
1 parent a7e7469d22
commit ccb98f836f
13 files changed
+158 -109

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ export default function EventsChart({ websiteId, startDate, endDate, unit }) {
unit,
tz: getTimezone(),
});
console.log({ data });
const map = data.reduce((obj, { x, t, y }) => {
if (!obj[x]) {
obj[x] = [];