mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
fix(v2): show dropdown instead of a single button when there are two versions (#3472)
This commit is contained in:
parent
521ef59908
commit
0ad8958438
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export default function DocsVersionDropdownNavbarItem({
|
|||
// We don't want to render a version dropdown with 0 or 1 item
|
||||
// If we build the site with a single docs version (onlyIncludeVersions: ['1.0.0'])
|
||||
// We'd rather render a buttonb instead of a dropdown
|
||||
if (versions.length <= 2) {
|
||||
if (versions.length <= 1) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue