fix(docs-infra): boolean options default value is incorrect when it's undefined (#27024)
In the CLI when it's undefined it can mean `false`, or sometimes it will be overwritten by a runtime value. PR Close #27024
This commit is contained in:
parent
8e75a40735
commit
d940b5541f
|
@ -30,11 +30,6 @@ function processOptions(container, options) {
|
|||
container.namedOptions = [];
|
||||
|
||||
options.forEach(option => {
|
||||
|
||||
if (option.type === 'boolean' && option.default === undefined) {
|
||||
option.default = false;
|
||||
}
|
||||
|
||||
// Ignore any hidden options
|
||||
if (option.hidden) { return; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue