summaryrefslogtreecommitdiff
path: root/docs/src/components/RightSidebar
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:23:19 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:23:19 -0700
commit6185f9f7b15908b48f9ae2e1d532634f5b59c9f9 (patch)
tree12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/components/RightSidebar
parente686c3c50469d18db93da7ce79ddcac8659c3166 (diff)
parent6dc05575a65bf6bdc6f52848d274b1f333a36076 (diff)
downloadastro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.tar.gz
astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.tar.zst
astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.zip
Docs/example and templates v2 (#1100)
Diffstat (limited to 'docs/src/components/RightSidebar')
-rw-r--r--docs/src/components/RightSidebar/RightSidebar.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/components/RightSidebar/RightSidebar.astro b/docs/src/components/RightSidebar/RightSidebar.astro
index ed1dd37cc..04ce66772 100644
--- a/docs/src/components/RightSidebar/RightSidebar.astro
+++ b/docs/src/components/RightSidebar/RightSidebar.astro
@@ -2,7 +2,7 @@
import TableOfContents from './TableOfContents.jsx';
import MoreMenu from './MoreMenu.astro';
const {content, githubEditUrl} = Astro.props;
-const headers = content.astro.headers;
+const headers = content.astro?.headers;
---
<style>
.sidebar-nav {
@@ -19,7 +19,7 @@ const headers = content.astro.headers;
</style>
<nav class="sidebar-nav" aria-labelledby="grid-right">
<div class="sidebar-nav-inner">
- <TableOfContents client:media="(min-width: 50em)" headers={headers} />
+ {headers && <TableOfContents client:media="(min-width: 50em)" headers={headers} />}
<MoreMenu editHref={githubEditUrl} />
</div>
</nav> \ No newline at end of file