1
0
mirror of synced 2026-01-08 21:02:10 -05:00

Merge pull request #21430 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2021-09-10 13:41:21 -04:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ export const useTocLandingContext = (): TocLandingContextT => {
export const getTocLandingContextFromRequest = (req: any): TocLandingContextT => {
const isEarlyAccess = req.context.page?.documentType === 'early-access'
return {
title: req.context.page.title,
title: req.context.page.titlePlainText,
productCallout: req.context.page.product || '',
introPlainText: req.context.page.introPlainText,
tocItems: (req.context.genericTocFlat || req.context.genericTocNested || []).map((obj: any) =>