summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-16 12:10:16 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 15:22:43 -0600
commitf0d20b09dc6604d4ea11a39a7d7492ad10574094 (patch)
tree0befb294ef5d0e4f639ccae10c60fe0e36f7ec70 /app/assets
parentb2137632203cda91b79763c33ac80c51e88ed010 (diff)
downloadgitlab-ce-f0d20b09dc6604d4ea11a39a7d7492ad10574094.tar.gz
use wiki pages index for sidebar overflow and limit sidebar list to 15 pages
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/wikis.js.es61
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/wikis.js.es6 b/app/assets/javascripts/wikis.js.es6
index 8710ca973c4..fa6d0e1f56c 100644
--- a/app/assets/javascripts/wikis.js.es6
+++ b/app/assets/javascripts/wikis.js.es6
@@ -55,6 +55,7 @@
}
renderSidebar() {
+ if (!this.sidebarEl) return;
const { classList } = this.sidebarEl;
if (this.sidebarExpanded || !this.sidebarCanCollapse()) {
if (!classList.contains('right-sidebar-expanded')) {