🥅 ACP: Make sure data is set
This commit is contained in:
1 parent
792de0b4e3
commit
e68c075df8
1 file changed
+1
-1
@@ -29,7 +29,7 @@ $(function () {
|
||||
};
|
||||
|
||||
self.fromResponse = function (data) {
|
||||
if (data.hasOwnProperty("text") && data.hasOwnProperty("choices")) {
|
||||
if (data && data.hasOwnProperty("text") && data.hasOwnProperty("choices")) {
|
||||
self.text(data.text);
|
||||
self.buttons(data.choices);
|
||||
self.showPrompt();
|
||||
|
||||
Reference in new issue
Block a user