Skip to content

Commit

Permalink
Fix optional chaining in guide content for safer access to defined me…
Browse files Browse the repository at this point in the history
…tadata
  • Loading branch information
1aron committed Dec 19, 2024
1 parent ad9e8fb commit 0287db7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/app/[locale]/guide/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ export const categories = getUnitCategories('guide')

## Getting Started
<OverviewButtons>
{categories.find(category => category.name === 'Getting Started').definedMetadataList}
{categories.find(category => category.name === 'Getting Started')?.definedMetadataList}
</OverviewButtons>

## Syntax Tutorial
<OverviewButtons>
{categories.find(category => category.name === 'Syntax Tutorial').definedMetadataList}
{categories.find(category => category.name === 'Syntax Tutorial')?.definedMetadataList}
</OverviewButtons>

## Customization
<OverviewButtons>
{categories.find(category => category.name === 'Customization').definedMetadataList}
{categories.find(category => category.name === 'Customization')?.definedMetadataList}
</OverviewButtons>

## Fundamentals
<OverviewButtons>
{categories.find(category => category.name === 'Fundamentals').definedMetadataList}
{categories.find(category => category.name === 'Fundamentals')?.definedMetadataList}
</OverviewButtons>

## Production Optimization
<OverviewButtons>
{categories.find(category => category.name === 'Production Optimization').definedMetadataList}
{categories.find(category => category.name === 'Production Optimization')?.definedMetadataList}
</OverviewButtons>

---
Expand Down

0 comments on commit 0287db7

Please sign in to comment.