From d64e06c12e955083c2c04d5509cb7d67015b6c6c Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 19 Aug 2016 12:14:20 +0200 Subject: [PATCH] don't make empty options --- www/poll/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/poll/main.js b/www/poll/main.js index f5b1a6b2a..0f50a70bb 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -379,7 +379,7 @@ define([ var msg = "Propose an option"; Cryptpad.prompt(msg, "", function (option) { - if (option === null) { return; } + if (option === null || !option) { return; } makeOption(module.rt.proxy, id, option).val(option).focus(); }); //makeOption(module.rt.proxy, id).focus();