🥅 ACP: Make sure data is set

This commit is contained in:
Gina Häußge committed 2022-11-07 18:48:33 +01:00
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();