botman / botman/web-widget

Cannot read property 'map' of undefined

Open
#30 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
40
Forks
67
PR merge metrics
No merged PRs in 30d

Description

hello ,
every time i'm try to run this ButtonTemplate
```
public function AskForMoreInfo()
{
$list = ButtonTemplate::create(__('bot.chose_one'))
->addButton(
ElementButton::create(__('bot.anther_search'))
->type('postback')
->payload('search')
)
->addButton(
ElementButton::create(__('bot.next_aya'))
->type('postback')
->payload('next_aya')
);
$this->ask($list, function (Answer $answer) {
$this->say($answer->getText());
});
}

```
i'm facing this Cannot read property 'map' of undefined (chat.js:1)

Screen Shot 2019-06-16 at 3 26 54 AM

Screen Shot 2019-06-16 at 3 24 07 AM

Screen Shot 2019-06-16 at 3 24 20 AM

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.