Skip to content

Commit

Permalink
fix(dialog-engine): queue not processed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
allardy committed Nov 21, 2018
1 parent 9cf5cd3 commit 03bc2ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bp/core/services/dialog/engine.ts
Expand Up @@ -222,7 +222,7 @@ export class DialogEngine {
...context,
currentNode: parentNode.name,
currentFlow: parentFlow.name,
queue: queue.toString()
queue
}
this._logExitFlow(event.botId, context.currentFlow, context.currentFlow, parentFlow.name, parentNode.name)
} else if (transitionTo === 'END') {
Expand Down
2 changes: 1 addition & 1 deletion src/bp/sdk/botpress.d.ts
Expand Up @@ -230,7 +230,7 @@ declare module 'botpress/sdk' {
previousNode?: string
currentNode?: string
currentFlow?: string
queue?: string
queue?: any
data?: any
}

Expand Down
3 changes: 2 additions & 1 deletion src/templates/data/global/content-types/builtin_card.js
@@ -1,4 +1,5 @@
const ActionButton = require('./builtin_action_button.js')
const Carousel = require('./builtin_carousel')

module.exports = {
id: 'builtin_card',
Expand Down Expand Up @@ -42,5 +43,5 @@ module.exports = {
},

computePreviewText: formData => `Card: ${formData.title}`,
renderElement: (data, channel) => Carousel([data], channel)
renderElement: (data, channel) => Carousel.renderElement({ items: [data], ...data }, channel)
}
@@ -1,5 +1,6 @@
const base = require('./_base.js')
const Card = require('./builtin_card')
const url = require('url')

function renderForWeb(data) {
const events = []
Expand Down

0 comments on commit 03bc2ab

Please sign in to comment.