mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 22:03:03 -05:00
fix(): fallback value when object is not set
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import type { Props } from '@astrojs/starlight/props';
|
import type { Props } from '@astrojs/starlight/props';
|
||||||
import Default from '@astrojs/starlight/components/PageTitle.astro';
|
import Default from '@astrojs/starlight/components/PageTitle.astro';
|
||||||
|
|
||||||
const {label: challengeLabel, number: challengeNumber} = Astro.props.entry.data.challenge;
|
const {label: challengeLabel, number: challengeNumber} = Astro.props.entry.data.challenge ?? {};
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user