Commit 15ff97d2 authored by Sarah GP's avatar Sarah GP

Check feature flag explicitly

parent ed4b163b
......@@ -146,11 +146,12 @@ const createTestDetails = detailsEndpoint => {
};
const createDagApp = () => {
const el = document.querySelector('#js-pipeline-dag-vue');
if (!el) {
if (!window.gon?.features?.dagPipelineTab) {
return;
}
const graphUrl = el.dataset?.pipelineDataPath;
const el = document.querySelector('#js-pipeline-dag-vue');
const graphUrl = el?.dataset?.pipelineDataPath;
// eslint-disable-next-line no-new
new Vue({
el,
......
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