Skip to content

Commit

Permalink
Embedded minor fixup: include empty toc (#766)
Browse files Browse the repository at this point in the history
include empty toc
  • Loading branch information
seungpark authored Feb 8, 2023
1 parent 63d08be commit cbffa5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/context/toc-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ const TocContextProvider = ({ children, remoteMetadata }) => {
}
}

if (clonedNode.children?.length) {
clonedToc.children.push(clonedNode);
}
clonedToc.children.push(clonedNode);
}
return clonedToc;
}, [activeVersions, remoteToc]);
Expand Down

0 comments on commit cbffa5e

Please sign in to comment.