Merge Request has "View previous app" link but it deployed my latest commit already

On my merge requests (MR), there’s a section with deployment status for the MR, as well as build status. The build status shows that my latest code is deployed to my Test environment. The deployment status claims that older code is deployed. Specifically, it says “Can deploy manually to Test” and “View previous app”. The commit hash is however for the latest commit.

If I click on the View link, it takes me to my test environment where the latest code is indeed deployed. Also, if I go into the Operations>Environments, it shows the latest commit is deployed to the environment.

This only started happening maybe a week ago, and I’ve had this build pipeline for at least a month. I have made minor tweaks to it though, so maybe something I changed caused this behavior?