Resolve with AI doesn't work when there is a MR

When the vulnerability report has associated merge requests, the "Resolve with AI" doesn't seem to work 🤔

Has Errors

There is an error when the vulnerability has a MR

Clone this project > https://gitlab.com/gitlab-org/govern/threat-insights-demos/test-remediations-for-issue-390071

  1. First, create some MRs for the vulnerabilities
  2. Click on a vulnerability
  3. Click on "Resolve with merge request"
  4. Returning to the same vulnerability, click on "Resolve with AI"
  5. An error occurs

project-has-mr-has-error

Empty error message

When you click on a vulnerability that does not have a MR (but the vulnerability report has MRs), there is an empty error. (Note: I will better handle this on the FE when the error is [])

project-has-mr-empty-error

Edited by Samantha Ming