commit and diff shows wrong number of files and shows zero when there was one file in the commit

Summary

commit and diff shows wrong number of files and shows zero when there was one file in the commit

Steps to reproduce

  1. Visit https://gitlab.com/idearoom/stanley/commit/e21875fb4017cf298ba8f0dbf5151df7baded2f0
  2. Notice the number of changed files image
  3. Click on Plain diff and notice the changed files image

There also seems to be a UI bug on the width of the orange bar. Should I create a separate issue for this?

What is the current bug behavior?

Commit screen shows 0 changed files

What is the expected correct behavior?

Commit screen shows 1 changed files

Output of checks

This bug happens on GitLab.com

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Assignee Loading
Time tracking Loading