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