Skip to content

Commit

Permalink
Removed the top-level folder being part of the concat
Browse files Browse the repository at this point in the history
  • Loading branch information
jacr1 committed Oct 4, 2018
1 parent 7b09cff commit b5cf32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/folderconcat/folder-concat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const folderConcat = (node) => {
if (node.list.length === 1) {
let collapsed = folderConcat(node.list[0])
// if the last collapsed thing is a folder merge into one.
if (node.nodeLabel !== "/" && (collapsed.href === null || collapsed.href === undefined)) {
if (node.nodeLabel !== '/' && (collapsed.href === null || collapsed.href === undefined)) {
node.nodeLabel = node.nodeLabel + '/' + collapsed.nodeLabel
node.hasComments = collapsed.hasComments || node.hasComments
node.list = collapsed.list
Expand Down

0 comments on commit b5cf32a

Please sign in to comment.