You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sending an empty voice command array to screenManager.steVoiceCommands() should clear the list of voice commands displayed in the HMI. This is because the statement used to check if the provided voice commands are equal to the current voice commands does not take an empty array into consideration. !voiceCommands.map((vc, index) => vc.equals(this._voiceCommands[index])).includes(false)
This statement returns false for an empty array and stops the manager from continuing.
Reproduction Steps
Call screenManager.setVoiceCommands([]); with an empty array.
Expected Behavior
The library should delete all available voice commands.
Observed Behavior
The action fails, the message Voice commands list non-existent or matches the current voice commands is logged to the console, and and no voice commands are deleted.
The text was updated successfully, but these errors were encountered:
Bug Report
Sending an empty voice command array to
screenManager.steVoiceCommands()
should clear the list of voice commands displayed in the HMI. This is because the statement used to check if the provided voice commands are equal to the current voice commands does not take an empty array into consideration.!voiceCommands.map((vc, index) => vc.equals(this._voiceCommands[index])).includes(false)
This statement returns false for an empty array and stops the manager from continuing.
Reproduction Steps
screenManager.setVoiceCommands([]);
with an empty array.Expected Behavior
The library should delete all available voice commands.
Observed Behavior
The action fails, the message
Voice commands list non-existent or matches the current voice commands
is logged to the console, and and no voice commands are deleted.The text was updated successfully, but these errors were encountered: