From 2bcd6b16d8a16b0630baed1b79fffe5fc349711e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 9 Dec 2021 14:02:35 +0100 Subject: [PATCH] Make sure value is set before using it --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 2c13856c88..cd39daee25 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -4736,7 +4736,7 @@ app.classes.mail = AppJS.extend( { widgets[widget] = this.et2.getWidgetById(widget); - if (widgets[widget].get_value().length) + if (widgets[widget].get_value() && widgets[widget].get_value().length) { switch (widget) {