diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-02 21:09:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-02 21:09:20 +0300 |
commit | fee10148072e2e96d14034f099985a441a844c6e (patch) | |
tree | 64ed9aa910ed10df0f06a0b010f221443baec8bc /app/assets/javascripts/ci_variable_list | |
parent | 02c151e384fe058fa070d50c6df94898385ff09c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ci_variable_list')
-rw-r--r-- | app/assets/javascripts/ci_variable_list/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/ci_variable_list/index.js b/app/assets/javascripts/ci_variable_list/index.js index 08bfabc05bc..50856ca9533 100644 --- a/app/assets/javascripts/ci_variable_list/index.js +++ b/app/assets/javascripts/ci_variable_list/index.js @@ -43,7 +43,8 @@ const mountCiVariableListApp = (containerEl) => { }); }; -export default () => { - const el = document.querySelector('#js-ci-project-variables'); +export default (containerId = 'js-ci-project-variables') => { + const el = document.getElementById(containerId); + return !el ? {} : mountCiVariableListApp(el); }; |