Dismissed state not correctly set in Vulnerability modal on Group Security Dashboard

Summary

The vulnerability modal displayed on the Group Security Dashboard doesn't correctly load its dismissed state and display the Dissmiss vulnerability button instead of the Revert dismissal one.

Note this only happens when the vulnerability is already dismissed when loading the dashboard. If the vulnerability is dismissed after page load, then the state of the button is correct.

Steps to reproduce

  • Open the Group Security Dashboard
  • Dismiss a vulnerability
  • Reload the dasbhoard
  • Open the modal for that dismissed vulnerability

What is the current bug behavior?

The modal displays the Dissmiss vulnerability button.

dismiss_bug

What is the expected correct behavior?

The modal displays the Revert dismissal button.

Possible fixes

Assignee Loading
Time tracking Loading