mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
refactor: remove unnecessary default values normalized during validation (#6864)
* refactor: remove unnecessary default values normalized during validation * more
This commit is contained in:
parent
7fc134ba0e
commit
8e934450d8
27 changed files with 146 additions and 138 deletions
|
@ -537,7 +537,7 @@ export function filterVersions(
|
|||
): string[] {
|
||||
if (options.onlyIncludeVersions) {
|
||||
return versionNamesUnfiltered.filter((name) =>
|
||||
(options.onlyIncludeVersions || []).includes(name),
|
||||
options.onlyIncludeVersions!.includes(name),
|
||||
);
|
||||
}
|
||||
return versionNamesUnfiltered;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue