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();