From db60d3cfa94c723a8ee8742dbd05b383c90fd1ff Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 25 Jun 2018 14:58:57 +0200 Subject: [PATCH] Make sure there is toolbar 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 25f0471aca..5415f820e9 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -6063,7 +6063,7 @@ app.classes.mail = AppJS.extend( actions = actions.split(','); for (var i=0; i < actions.length; i++) { - if (toolbar.options.actions[actions[i]]) + if (toolbar && toolbar.options.actions[actions[i]]) { var $d = jQuery('#composeToolbar-'+actions[i]); if ($d.length > 0