[openstreetmap/openstreetmap-website] Fix month label index desync causing missing labels (PR #6725)

Marwin Hochfelsner notifications at github.com
Mon Jan 19 21:14:17 UTC 2026


@hlfan commented on this pull request.



>        if (previousMonth === null) {
+        currentMonth += Math.round((monthLabelStartIndex - getMonthOfThisWeek(date)) / 12) * 12;

Yes. Also, this could be part of the `previousMonth` initialization all together.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6725#discussion_r2706082098
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6725/review/3679629164 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260119/489b267c/attachment.htm>


More information about the rails-dev mailing list