diff --git a/lib/admin_command.rb b/lib/admin_command.rb index 5eedb57488600b26263f3bc3067a16566405340e..f0994d46114cc779c516430e0e25d76a7db0f359 100644 --- a/lib/admin_command.rb +++ b/lib/admin_command.rb @@ -22,7 +22,9 @@ class AdminCommand def menu reply(FormTemplate.render("admin_menu")).then do |response| - handle(response.form.field("action").value) + if response.form.field("action") + handle(response.form.field("action").value) + end end end