Browse Source

fix lint warning

itizawa 5 năm trước cách đây
mục cha
commit
1cd606f10a
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

@@ -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;