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:
authorStan Hu <stanhu@gmail.com>2019-09-02 19:50:09 +0300
committerFilipa Lacerda <filipa@gitlab.com>2019-09-02 19:50:09 +0300
commit526ea7c5b6cfcca1b94bb8a7b826e64d494471ff (patch)
tree6b06502677e76d6ffce1fad36daebb71d6f979c5 /app
parentfb63a00ea4df8196b99570c7f5b2e21793813f9e (diff)
Update Mermaid to v8.2.6
This fixes a regression where an underscore in labels no longer worked: https://github.com/knsv/mermaid/releases
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/branches/divergence_graph.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/branches/divergence_graph.js b/app/assets/javascripts/branches/divergence_graph.js
index 7dbaf984acf..303735a1807 100644
--- a/app/assets/javascripts/branches/divergence_graph.js
+++ b/app/assets/javascripts/branches/divergence_graph.js
@@ -25,6 +25,11 @@ export default endpoint => {
const names = [...document.querySelectorAll('.js-branch-item')].map(
({ dataset }) => dataset.name,
);
+
+ if (names.length === 0) {
+ return true;
+ }
+
return axios
.get(endpoint, {
params: { names },