mirror of
https://github.com/usememos/memos.git
synced 2025-12-15 21:29:52 +08:00
chore: fix build
This commit is contained in:
parent
6fe1db42b5
commit
304df8674a
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ const UsageHeatMap: React.FC<Props> = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const newStat: DailyUsageStat[] = getInitialUsageStat(usedDaysAmount, beginDayTimestemp);
|
const newStat: DailyUsageStat[] = getInitialUsageStat(usedDaysAmount, beginDayTimestemp);
|
||||||
for (const m of memos) {
|
for (const m of memos) {
|
||||||
const index = (utils.getDateStampByDate(m.createdAt) - beginDayTimestemp) / (1000 * 3600 * 24) - 1;
|
const index = (utils.getDateStampByDate(m.createdTs) - beginDayTimestemp) / (1000 * 3600 * 24) - 1;
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
newStat[index].count += 1;
|
newStat[index].count += 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue