itizawa 5 anni fa
parent
commit
96dc92d622
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/client/js/components/TableOfContents.jsx

+ 1 - 1
src/client/js/components/TableOfContents.jsx

@@ -27,7 +27,7 @@ const TableOfContents = (props) => {
 
 
     // window height - revisionToc top - .system-version height
     // window height - revisionToc top - .system-version height
     return window.innerHeight - containerTop - 20;
     return window.innerHeight - containerTop - 20;
-  });
+  }, []);
 
 
   const { tocHtml } = pageContainer.state;
   const { tocHtml } = pageContainer.state;