From b500fd07d048e49f86d2b715652bef903b225ef2 Mon Sep 17 00:00:00 2001 From: Lee Dohm <1038121+lee-dohm@users.noreply.github.com> Date: Thu, 9 Sep 2021 13:50:54 -0700 Subject: [PATCH] Use titlePlainText attribute since the title will be used for rendered text --- components/context/TocLandingContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/context/TocLandingContext.tsx b/components/context/TocLandingContext.tsx index 689829a106..b3c1559a36 100644 --- a/components/context/TocLandingContext.tsx +++ b/components/context/TocLandingContext.tsx @@ -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) =>