Skip to content

Commit 61357b1

Browse files
heiskrCopilot
andauthored
Guard against undefined featuredLinks in TocLanding (#60529)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 61430df commit 61357b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/landings/components/TocLanding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const TocLanding = () => {
5454
<div className="border-bottom border-xl-0 pb-4 mb-5 pb-xl-2 mb-xl-2" />
5555

5656
<div className={variant === 'expanded' ? 'mt-5' : 'mt-2'}>
57-
{featuredLinks.gettingStarted && featuredLinks.popular && (
57+
{featuredLinks?.gettingStarted && featuredLinks?.popular && (
5858
<div className="pb-8 container-xl">
5959
<div className="gutter gutter-xl-spacious clearfix">
6060
<div className="col-12 col-lg-6 mb-md-4 mb-lg-0 float-left">

0 commit comments

Comments
 (0)