fix(config): no legacy over non-legacy override (#2644)
Do not take legacy property into account if there's non-legacy value.
This commit is contained in:
parent
de0a7bfcd3
commit
15e1633d86
|
@ -157,7 +157,7 @@ function _translateLegacyConfig(oldValue: Object) {
|
|||
|
||||
/* eslint-enable indent */
|
||||
|
||||
if (oldKey in newValue) {
|
||||
if (oldKey in newValue && !(newKey in newValue.p2p)) {
|
||||
const v = newValue[oldKey];
|
||||
|
||||
// Do not modify oldValue.
|
||||
|
|
Loading…
Reference in New Issue