mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21: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 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