diff --git a/docs/js/custom.js b/docs/js/custom.js index 1d6e3906ec..3ed067e054 100644 --- a/docs/js/custom.js +++ b/docs/js/custom.js @@ -73,7 +73,7 @@ $(document).ready(function() { const allVersions = [...document.querySelectorAll('.switcher__list .versions dd')]; const olderVersions = document.querySelector('#older-versions'); - if (eolVersions.includes(branchName)) { + if (eolVersions.length > 0) { olderVersions.hidden = false; }