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

Check feature flag explicitly

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