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 - 40;
     }
     }
     return window.innerHeight - containerTop - 20 - 155 - 26;
     return window.innerHeight - containerTop - 20 - 155 - 26;
-  }, []);
+  }, [isUserPage]);
 
 
   const { tocHtml } = pageContainer.state;
   const { tocHtml } = pageContainer.state;