feat : 6 astra improve it
This commit is contained in:
@@ -27,5 +27,6 @@ function hasPublicSectionContent(guide: PublicGuide, slug: string): boolean {
|
||||
}
|
||||
|
||||
export function publicGuideSections(guide: PublicGuide) {
|
||||
if (guide.availableSections) return guide.availableSections;
|
||||
return guide.sections.filter((section) => hasPublicSectionContent(guide, section.slug));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user