From e2753ca8a3d67576f3380acdf2e96dd78c1d432d Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Fri, 4 Feb 2022 08:57:32 +0100 Subject: [PATCH] fix config merging --- lib/tasks/cognigy/speech-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index d3ba7f25..3a3993a2 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -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;