Parcourir la source

fix(config) avoid using legacy config options

If the new ones are specified, use them.
j8
Saúl Ibarra Corretgé il y a 4 ans
Parent
révision
433e212e20
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      react/features/base/config/reducer.js

+ 2
- 1
react/features/base/config/reducer.js Voir le fichier

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

Chargement…
Annuler
Enregistrer