[Bug Report] Creating new issue for recent projects points to project not even in the group
Description
When we create issue at group level, we choose a recent project to create issue to, but when we switch a group then do the same thing again, the recent selected project will always be the one we last selected, no matter which group this project belongs to
Cause
Introduced in !109863 (diffs).
GroupId should have been set to required to pass to the new_resource_dropdown
component, but none provided, the local storage key will always be the same key no matter which group you are at.
Reproduce steps
- Create 2 groups with at least one project, to be simple we call the groups A and B.
- Go to
group
A or B >Issue
- Click on
Select project to create issue
, choose a project. - Go to another group >
Issue
. - Observe the same button.
What is happening
The button shows a project not even in the group to create issue to.
What is expected
The button should show the correct project when selected, "Select project to create issue" when none selected.