From 9a7f5cd4bac493123cacd19e05ca360ea0a642b3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 28 Sep 2017 12:13:08 +0200 Subject: [PATCH] don't display 'null' in the prompt --- src/app/ui/modal-dialog-custom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ui/modal-dialog-custom.js b/src/app/ui/modal-dialog-custom.js index 89a6551b15..27523552e2 100644 --- a/src/app/ui/modal-dialog-custom.js +++ b/src/app/ui/modal-dialog-custom.js @@ -12,6 +12,7 @@ module.exports = { modal('', yo`
${text}
`, null, { label: null }) }, prompt: function (title, text, inputValue, ok, cancel) { + if (!inputValue) inputValue = '' modal(title, yo`
${text}
`, {