Fix bug in doc_list.coffee when last doc is versioned

Ref #25.
pull/308/merge
Thibaut Courouble 9 years ago
parent 1cea1783fd
commit a00af2a7a2

@ -62,7 +62,7 @@ class app.views.DocList extends app.View
versions = ''
loop
versions += @tmpl('sidebarDoc', doc, disabled: true)
break if docs[0].name isnt doc.name
break if docs[0]?.name isnt doc.name
doc = docs.shift()
html += @tmpl('sidebarDisabledVersionedDoc', doc, versions)
else

Loading…
Cancel
Save