Browse Source

fix lint err

itizawa 6 năm trước cách đây
mục cha
commit
96dc92d622
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
     return window.innerHeight - containerTop - 20;
-  });
+  }, []);
 
   const { tocHtml } = pageContainer.state;