Fix Issues Analytics first-of-month loading error
What does this MR do and why?
Fixes the loading error that occurs when attempting to load Issues analytics on the first day of any month.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Navigate to issues analytics page for any group (ex. http://gdk.test:3000/groups/gitlab-org/-/issues_analytics)
- Mock the first-of-month behaviour by changing
endDate
on this line to:return new Date(2024, 3, 1);
- ...
- SUCCESS!
Related to #444265 (closed)