From e68c075df83fd95e075d46a306c96ce74c7f377e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 7 Nov 2022 18:48:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20ACP:=20Make=20sure=20data=20is?= =?UTF-8?q?=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../action_command_prompt/static/js/action_command_prompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js b/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js index d7d1f02d1..e1bb51669 100644 --- a/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js +++ b/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js @@ -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();