Skip to content

Fix displaying default view after switching back

Savas Vedova requested to merge 425792-fix-switching-back-to-group-none into master

What does this MR do and why?

Fix displaying default view after switching back

When a group is selected, switching back to none stops functioning. This commit fixes that behaviour by resetting the expandedGroup variable when group none is selected.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

To reproduce this bug:

  1. Go to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/verify-epic-10164/-/security/vulnerability_report
  2. Click on Group By Severity
  3. Select a Group and see the Vulnerability Report
  4. Click on Group By None
  5. The page will be blank

To verify the bug is fixed:

Repeat the same steps locally on a project with :vulnerability_report_grouping feature flag enabled.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #425792 (closed)

Merge request reports