Browse Source

adjustments

Markelle Kelly 6 years ago
parent
commit
d7c324633c

+ 0 - 2
packages/toc/src/generators/notebookgenerator/index.ts

@@ -248,8 +248,6 @@ export function createNotebookGenerator(
               !renderedHeading
             ) {
               // Determine whether the heading has children
-              if (renderedHeading) {
-              }
               if (
                 prevHeading &&
                 prevHeading.type === 'header' &&

+ 0 - 2
packages/toc/src/generators/notebookgenerator/toolbargenerator.tsx

@@ -226,8 +226,6 @@ export function notebookGeneratorToolbar(
           />
         );
         options.setTagTool(this.tagTool);
-        if (this.tagTool) {
-        }
         tagDropdown = <div className={'toc-tag-dropdown'}> {tagTool} </div>;
         tagIcon = (
           <div