File template list not cleared when switching template type in web ide
Summary
When I select one file template type (e.g., license) in the web ide and then I select a different one (e.g., Dockerfile) the new list of templates is added to the end of the existing list rather than replacing it.
Steps to reproduce
- In the Web IDE add a new file and select the
LICENSE
template. - Select
Dockerfile
in the first dropdown
What is the current bug behavior?
It lists licenses and dockerfiles. An error is reported if I select a license.
What is the expected correct behavior?
Only the list of Dockerfile templates (i.e., no licenses)
Output of checks
This bug happens on GitLab.com