Skip to content

Commit 76d71ec

Browse files
authored
Merge pull request #557 from smartdevicelink/bugfix/dependency-install-failures
Update package.json to be compatible with more versions of Node
2 parents d233da1 + 654a080 commit 76d71ec

3 files changed

Lines changed: 1456 additions & 3711 deletions

File tree

lib/js/src/manager/screen/_VoiceCommandManagerBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class _VoiceCommandManagerBase extends _SubManagerBase {
152152
* @returns {Boolean} - indicate whether all voice commands are unique
153153
*/
154154
_arePendingVoiceCommandsUnique (voiceCommands) {
155-
const allVoiceCommands = voiceCommands.map(voiceCommand => voiceCommand.getVoiceCommands()).flat();
155+
const allVoiceCommands = voiceCommands.reduce((array, voiceCommand) => array.concat(voiceCommand.getVoiceCommands()), []);
156156
return new Set(allVoiceCommands).size === allVoiceCommands.length;
157157
}
158158

0 commit comments

Comments
 (0)