fix config merging

This commit is contained in:
akirilyuk
2022-02-04 08:57:32 +01:00
parent df302320ca
commit e2753ca8a3

View File

@@ -23,8 +23,8 @@ class SpeechConfig extends Emitter {
this.sessionConfig,
changedConfig,
(objValue, sourceValue) => {
if (isArray(objValue)) {
if (isArray(sourceValue)) {
if (Array.isArray(objValue)) {
if (Array.isArray(sourceValue)) {
return sourceValue;
}
return objValue;