We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f387f commit 1d43ca5Copy full SHA for 1d43ca5
packages/gitbook/src/components/TableOfContents/TOCScroller.tsx
@@ -39,7 +39,9 @@ export function useScrollToActiveTOCItem(tocItem: {
39
const scrollContainerRef = React.useContext(TOCScrollContainerContext);
40
41
React.useLayoutEffect(() => {
42
- if (!isActive) { return; }
+ if (!isActive) {
43
+ return;
44
+ }
45
46
if (linkRef.current && scrollContainerRef?.current) {
47
const tocItem = linkRef.current;
0 commit comments