1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Revert "Fix homepage versions dropdown" (#20087)

This commit is contained in:
Matt Pollard
2021-06-23 09:11:51 +02:00
committed by GitHub
parent 7aa96e48b8
commit f9f0b2ce86
14 changed files with 58 additions and 16 deletions

View File

@@ -31,6 +31,10 @@ export const ArticleVersionPicker = () => {
</summary>
<Dropdown.Menu direction="sw">
{(page.permalinks || []).map((permalink) => {
if (permalink.pageVersion === 'homepage') {
return null
}
return (
<Dropdown.Item key={permalink.href}>
<Link href={permalink.href}>{permalink.pageVersionTitle}</Link>