Commit f182095e authored by pburdette's avatar pburdette

Mount components correctly

Fixes bug where component was
not being mounted.
parent 1c62cdbb
......@@ -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);
};
---
title: Fixes admin ci variables not showing up
merge_request: 58496
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment