瀏覽代碼

fix lint err

itizawa 6 年之前
父節點
當前提交
96dc92d622
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;