Commit c287c018 authored by Clement Ho's avatar Clement Ho

Remove unnecessary element checks

parent e658ca96
...@@ -16,11 +16,9 @@ export default () => { ...@@ -16,11 +16,9 @@ export default () => {
mediator.fetchPipeline(); mediator.fetchPipeline();
const pipelineGraphEl = document.querySelector('#js-pipeline-graph-vue');
if (pipelineGraphEl) {
// eslint-disable-next-line // eslint-disable-next-line
new Vue({ new Vue({
el: pipelineGraphEl, el: '#js-pipeline-graph-vue',
components: { components: {
pipelineGraph, pipelineGraph,
}, },
...@@ -38,13 +36,10 @@ export default () => { ...@@ -38,13 +36,10 @@ export default () => {
}); });
}, },
}); });
}
const pipelineHeaderEl = document.querySelector('#js-pipeline-header-vue');
if (pipelineHeaderEl) {
// eslint-disable-next-line // eslint-disable-next-line
new Vue({ new Vue({
el: pipelineHeaderEl, el: '#js-pipeline-header-vue',
components: { components: {
pipelineHeader, pipelineHeader,
}, },
...@@ -75,5 +70,4 @@ export default () => { ...@@ -75,5 +70,4 @@ export default () => {
}); });
}, },
}); });
}
}; };
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