Frontend: Environments list does not reset in the environment scope dropdown for CI Variables
Summary
This occurs in both the CI Variables modal and drawer.
How to replicate the issue:
- Open the CI Variables modal or drawer by adding or editing a CI Variable from the CI/CD settings.
- In the environment scope dropdown, enter an environment name that doesn't exist yet. This will cause the dropdown to search for the environment, with empty results
- Exit the modal/drawer then open it again
- The environments list in the environment scope dropdown is still empty. It should revert back to the default list.
Screen_Recording_2023-10-17_at_15.56.10
There is a workaround to this, which is to reset the search term again through the UI.
Edited by Mireya Andres