Переглянути джерело

fix(config) avoid using legacy config options

If the new ones are specified, use them.
master
Saúl Ibarra Corretgé 4 роки тому
джерело
коміт
433e212e20
1 змінених файлів з 2 додано та 1 видалено
  1. 2
    1
      react/features/base/config/reducer.js

+ 2
- 1
react/features/base/config/reducer.js Переглянути файл

@@ -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
 

Завантаження…
Відмінити
Зберегти