fix(config) avoid using legacy config options

If the new ones are specified, use them.
pull/9070/head
Saúl Ibarra Corretgé 4 years ago committed by Saúl Ibarra Corretgé
parent 527d022d63
commit 433e212e20
  1. 3
      react/features/base/config/reducer.js

@ -224,7 +224,8 @@ function _translateLegacyConfig(oldValue: Object) {
}
});
if (typeof interfaceConfig === 'object' && Array.isArray(interfaceConfig.TOOLBAR_BUTTONS)) {
if (!Array.isArray(oldValue.toolbarButtons)
&& typeof interfaceConfig === 'object' && Array.isArray(interfaceConfig.TOOLBAR_BUTTONS)) {
newValue.toolbarButtons = interfaceConfig.TOOLBAR_BUTTONS;
}

Loading…
Cancel
Save