fix config merging

This commit is contained in:
akirilyuk
2022-02-04 08:06:19 +01:00
parent 3a791a67b5
commit 57ba79f908

View File

@@ -20,7 +20,7 @@ class SpeechConfig extends Emitter {
const merged = lodash.merge(
{},
this.sessionConfig,
session
changedConfig
);
merged.bargein.enable = changedConfig.bargein?.enable?.length === 0 ? [] : changedConfig.bargein?.enable;