mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Fix calendar.
This commit is contained in:
parent
5c683f9103
commit
d9ba4097ee
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,8 @@ const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const days = [];
|
const days = [];
|
||||||
for (let i = 0; i < 35; i++) {
|
const weekCount = addDays(startDay, 36).getMonth() === month ? 42 : 35;
|
||||||
|
for (let i = 0; i < weekCount; i++) {
|
||||||
days.push(addDays(startDay, i));
|
days.push(addDays(startDay, i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue