Skip to content

Commit

Permalink
fix(render): ubtitle in side bar shows undefined, fixed #182
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Jun 3, 2017
1 parent bb793ec commit d087d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function renderMixin (proto) {
this._renderTo('.sidebar-nav', this.compiler.sidebar(text, maxLevel))
const activeEl = getAndActive(this.router, '.sidebar-nav', true, true)
if (loadSidebar && activeEl) {
activeEl.parentNode.innerHTML += this.compiler.subSidebar(subMaxLevel)
activeEl.parentNode.innerHTML += (this.compiler.subSidebar(subMaxLevel) || '')
} else {
// reset toc
this.compiler.subSidebar()
Expand Down

0 comments on commit d087d57

Please sign in to comment.