fix: Vue diff when there are no commits appear as "NaN"
What does this MR do and why?
Fixes bug where, in a merge request with 0 commits the "Changes" badge counter shows as "NaN" when selected.
Screenshots or screen recordings
Screenshot of previous state:
Screenshot of bug fixed:
How to set up and validate locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.