Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-07-05 13:50:07 +0300
committerPhil Hughes <me@iamphill.com>2019-07-05 13:50:07 +0300
commitfad92a2ecd943e52323e9e978df84ba963057a6e (patch)
tree096725d6cc918f417878c09b5ddaa831668c1170 /app
parentf845a081e336621e991587f88ee7d8ce6d012e21 (diff)
Fix divergence graph loading error
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64143
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/branches/divergence_graph.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/branches/divergence_graph.js b/app/assets/javascripts/branches/divergence_graph.js
index 96bc6a5f8e8..7dbaf984acf 100644
--- a/app/assets/javascripts/branches/divergence_graph.js
+++ b/app/assets/javascripts/branches/divergence_graph.js
@@ -36,7 +36,9 @@ export default endpoint => {
}, 100);
Object.entries(data).forEach(([branchName, val]) => {
- const el = document.querySelector(`.js-branch-${branchName} .js-branch-divergence-graph`);
+ const el = document.querySelector(
+ `[data-name="${branchName}"] .js-branch-divergence-graph`,
+ );
if (!el) return;