Skip to content

Commit 38f3121

Browse files
Only scroll if we have something to scroll to
1 parent f52a6ab commit 38f3121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/fsdocs-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function scrollToAndExpandSelectedMember() {
1717
const details = document.querySelector(`tr > td.fsdocs-member-usage:has(a[href='${location.hash}']) ~ td.fsdocs-member-xmldoc > details`);
1818
details?.setAttribute('open', 'true');
1919
const header = document.querySelector(`a[href='${location.hash}']`);
20-
header.scrollIntoView({ behavior: 'instant'});
20+
header?.scrollIntoView({ behavior: 'instant'});
2121
}
2222
}
2323

0 commit comments

Comments
 (0)