Context line stays in diffs when expanding

Summary

In the diffs of a merge request it tries to give some kind of context for the change but when you expand you keep seeing that context.

Steps to reproduce

Create a merge request which results in a diff with a context (i used a simple python testcase)

Example Project

Pandabehr/example!2 (diffs)

What is the current bug behavior?

The context line stays in the diff

What is the expected correct behavior?

The context line should be replaced with the actual line of code for that line number

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com