瀏覽代碼

fix lint warning

itizawa 5 年之前
父節點
當前提交
1cd606f10a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/client/js/components/TableOfContents.jsx

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

@@ -36,7 +36,7 @@ const TableOfContents = (props) => {
       return window.innerHeight - containerTop - 20 - 155 - 26 - 40;
     }
     return window.innerHeight - containerTop - 20 - 155 - 26;
-  }, []);
+  }, [isUserPage]);
 
   const { tocHtml } = pageContainer.state;