Skip to content

fix: Vue diff when there are no commits appear as "NaN"

Gustavo Lima requested to merge Gugabit/gitlab:Gugabit-master-patch-76545 into master

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:

NaN example

Screenshot of bug fixed:

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.

Merge request reports