Compare between branches doesn't show recent version

I’m trying to merge my develop branch to my master and the compare shows that the are missing lines on my source branch, however, when I look at the files in gitlab, they are identical except one line that is the reason for the merge to begin with

I don’t understand why the master and develop show one thing but the compare show another

any help would be much appreciated