зеркало из https://github.com/github/docs.git
fix: includeGuides should always include topics array (#22455)
This commit is contained in:
Родитель
af75833675
Коммит
b223df9a8d
|
@ -62,8 +62,9 @@ export const getProductSubLandingContextFromRequest = (req: any): ProductSubLand
|
|||
})),
|
||||
includeGuides: (page.includeGuides || []).map((guide: any) => {
|
||||
return {
|
||||
...pick(guide, ['href', 'title', 'intro', 'topics']),
|
||||
...pick(guide, ['href', 'title', 'intro']),
|
||||
type: guide.type || '',
|
||||
topics: guide.topics || [],
|
||||
}
|
||||
}),
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче