use foreach instead of map
This commit is contained in:
@@ -34,7 +34,7 @@ module.exports = {
|
||||
destinationEmail = activeSkill.contactEmail;
|
||||
|
||||
let listOfPossibleQuestions = '';
|
||||
activeSkill.intents.map (intent => {
|
||||
activeSkill.intents.forEach(intent => {
|
||||
if (intent.questions.length > 0 && intent.intentExplanation) {
|
||||
listOfPossibleQuestions +=
|
||||
intent.intentExplanation +
|
||||
@@ -45,6 +45,8 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
|
||||
console.log(listOfPossibleQuestions);
|
||||
|
||||
//Handler for launch requestconsole.log()
|
||||
handlers = {
|
||||
LaunchRequest: function () {
|
||||
|
||||
Reference in New Issue
Block a user