Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f8ddd7

Browse files
authored
fix: Handle undefined in PageSidebar component that was causing a type error (WICG#480)
1 parent9c91b4f commit9f8ddd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/components/docs/PageSidebar.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const removeOverview = [
66
'docs/resources/glossary',
77
]
88
const noOverview=removeOverview.includes(Astro.props.slug);
9-
const toc=noOverview
9+
const toc=noOverview&&Astro.props.toc!==undefined
1010
? {
1111
...Astro.props.toc,
1212
items:Astro.props.toc?.items.slice(1),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp