small refactor, lint and fixes

This commit is contained in:
Jori Lallo
2017-09-12 23:30:18 -07:00
parent 2cfe36dd35
commit c02bc04fd2
8 changed files with 47 additions and 61 deletions

View File

@ -43,7 +43,7 @@ const activeStyle = {
{!canDropToImport &&
<SidebarLink to={doc.url}>{doc.title}</SidebarLink>}
{(document.pathToDocument.includes(doc.id) ||
{(document.pathToDocument.map(entry => entry.id).includes(doc.id) ||
document.id === doc.id) &&
<Children column>
{doc.children && this.renderDocuments(doc.children, depth + 1)}