Frontend: Only first 20 enviroments selectable in Settings -> CICD -> New Variables form

Summary

If you have more than 20 environments defined for a project, it is impossible to select the 21st to Nth environment in the Settings -> CICD -> New Variable form.

Steps to reproduce

  1. Create a project with more than 20 environments
  2. Go to Settings -> CICD
  3. Open the new variable modal form
  4. Try to select any environment apart from the first 20 .. it should not be possible

Example Project

What is the current bug behavior?

Cannot select any environment apart from the first 20

What is the expected correct behavior?

Should be able to select any environment.

Relevant logs and/or screenshots

image

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Mark Nuzzo