diff --git a/docs/content/fsdocs-theme.js b/docs/content/fsdocs-theme.js index 88576ec5..3cea8682 100644 --- a/docs/content/fsdocs-theme.js +++ b/docs/content/fsdocs-theme.js @@ -17,7 +17,7 @@ function scrollToAndExpandSelectedMember() { const details = document.querySelector(`tr > td.fsdocs-member-usage:has(a[href='${location.hash}']) ~ td.fsdocs-member-xmldoc > details`); details?.setAttribute('open', 'true'); const header = document.querySelector(`a[href='${location.hash}']`); - header.scrollIntoView({ behavior: 'instant'}); + header?.scrollIntoView({ behavior: 'instant'}); } }