diff options
author | Stan Hu <stanhu@gmail.com> | 2019-09-02 19:50:09 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-09-02 19:50:09 +0300 |
commit | 526ea7c5b6cfcca1b94bb8a7b826e64d494471ff (patch) | |
tree | 6b06502677e76d6ffce1fad36daebb71d6f979c5 /app/assets/javascripts | |
parent | fb63a00ea4df8196b99570c7f5b2e21793813f9e (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/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/branches/divergence_graph.js | 5 |
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 }, |