Abort DAG app init if selector doesn't exist

parent 4f52eaa0
......@@ -147,6 +147,9 @@ const createTestDetails = detailsEndpoint => {
const createDagApp = () => {
const el = document.querySelector('#js-pipeline-dag-vue');
if (!el) {
return;
}
const graphUrl = el.dataset?.pipelineDataPath;
// eslint-disable-next-line no-new
new Vue({
......
---
title: Fix a bug where some Vue apps would be unable to load when DAG tab is disabled
merge_request: 32966
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