Fix displaying default view after switching back
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 |
---|---|
How to set up and validate locally
To reproduce this bug:
- Go to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/verify-epic-10164/-/security/vulnerability_report
- Click on Group By Severity
- Select a Group and see the Vulnerability Report
- Click on Group By None
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #425792 (closed)