'Compare branches' on the UI is showing very old commits/diffs

As a result, reviewing merge requests is very difficult as the same old changes keep re-appearing over and over again.

$ git diff origin/master origin/dev --name-only | wc -l
3

and when comparing ‘dev’ and ‘master’ in the UI:

Screen Shot 2021-05-25 at 16.43.32