Skip to content

Commit 948e815

Browse files
heiskrCopilot
andauthored
🐞 Fix docsTeamMetrics serialization error (#60820)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 94e075c commit 948e815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frame/components/context/MainContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export type MainContextT = {
125125
hidden: boolean
126126
noEarlyAccessBanner: boolean
127127
applicableVersions: string[]
128-
docsTeamMetrics?: string[]
128+
docsTeamMetrics: string[] | null
129129
} | null
130130
relativePath?: string
131131
sidebarTree?: ProductTreeNode | null
@@ -228,7 +228,7 @@ export const getMainContext = async (req: any, res: any): Promise<MainContextT>
228228
applicableVersions: req.context.page?.permalinks.map((obj: any) => obj.pageVersion) || [],
229229
hidden: req.context.page.hidden || false,
230230
noEarlyAccessBanner: req.context.page.noEarlyAccessBanner || false,
231-
docsTeamMetrics: req.context.page.docsTeamMetrics || undefined,
231+
docsTeamMetrics: req.context.page.docsTeamMetrics || null,
232232
}) ||
233233
null
234234

0 commit comments

Comments
 (0)