Merge impossible when no discussions present

Summary

When merge request contains 0 comments, merge is impossible.

Steps to reproduce

  1. Enable "Only allow merge requests to be merged if all discussions are resolved" in project
  2. Create merge request
  3. Go to merge request page and see error "This merge request has unresolved discussions"

Expected behavior

I should be able to merge.

Actual behavior

I am not able to merge.

Relevant logs and/or screenshots

Output of checks

Results of GitLab application Check

Results of GitLab environment info

Possible fixes