mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
fix(): missing challengeNumber properties
This commit is contained in:
@@ -6,17 +6,17 @@ import Author from './Author.astro';
|
||||
import ChallengeFooter from './ChallengeFooter.astro';
|
||||
import CommentSection from './CommentSection.astro';
|
||||
|
||||
const {challengeNumber} = Astro.props.entry.data;
|
||||
const {challenge} = Astro.props.entry.data;
|
||||
const author = Astro.props.entry.data.author ? await getEntry(Astro.props.entry.data.author) : null;
|
||||
const renderCommentSection = !Astro.props.entry.data.noCommentSection;
|
||||
|
||||
---
|
||||
|
||||
{ challengeNumber && author && <Author {...author.data}/> }
|
||||
{ challenge?.number && author && <Author {...author.data}/> }
|
||||
|
||||
<Default {...Astro.props}><slot /></Default>
|
||||
|
||||
{challengeNumber && <ChallengeFooter {...Astro.props} />}
|
||||
{challenge?.number && <ChallengeFooter {...Astro.props} />}
|
||||
|
||||
{ renderCommentSection && <CommentSection /> }
|
||||
|
||||
@@ -26,4 +26,4 @@ const renderCommentSection = !Astro.props.entry.data.noCommentSection;
|
||||
font-size: var(--sl-text-xs);
|
||||
color: var(--sl-color-gray-3);
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user