List only questions with explanation

This commit is contained in:
GotPPay
2018-01-23 01:46:02 +01:00
parent c6cd49a66f
commit 0d858ad1c7

View File

@@ -35,7 +35,7 @@ module.exports = {
let listOfPossibleQuestions = '';
activeSkill.intents.map (intent => {
if (intent.questions.length > 0) {
if (intent.questions.length > 0 && intent.intentExplanation) {
listOfPossibleQuestions +=
intent.intentExplanation +
intent.questions[0] +