File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type LandingContextT = {
1818 variant ?: 'compact' | 'expanded'
1919 featuredLinks : Record < string , Array < FeaturedLink > >
2020 renderedPage : string
21- currentLearningTrack ?: LearningTrack
21+ currentLearningTrack ?: LearningTrack | null
2222 currentLayout : string
2323 heroImage ?: string
2424 // For landing pages with carousels
@@ -99,7 +99,7 @@ export const getLandingContextFromRequest = async (
9999 variant : context . genericTocFlat ? 'expanded' : 'compact' ,
100100 featuredLinks : getFeaturedLinksFromReq ( req ) ,
101101 renderedPage : context . renderedPage ?? '' ,
102- currentLearningTrack : context . currentLearningTrack ?? undefined ,
102+ currentLearningTrack : context . currentLearningTrack ?? null ,
103103 currentLayout : context . currentLayoutName ?? '' ,
104104 heroImage : page . heroImage || '/assets/images/banner-images/hero-1' ,
105105 introLinks : page . introLinks || null ,
You can’t perform that action at this time.
0 commit comments