Skip to content

Commit 1d43ca5

Browse files
committed
Foramtting
1 parent 26f387f commit 1d43ca5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/gitbook/src/components/TableOfContents/TOCScroller.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export function useScrollToActiveTOCItem(tocItem: {
3939
const scrollContainerRef = React.useContext(TOCScrollContainerContext);
4040

4141
React.useLayoutEffect(() => {
42-
if (!isActive) { return; }
42+
if (!isActive) {
43+
return;
44+
}
4345

4446
if (linkRef.current && scrollContainerRef?.current) {
4547
const tocItem = linkRef.current;

0 commit comments

Comments
 (0)