Make sure there is toolbar before using it

This commit is contained in:
Hadi Nategh 2018-06-25 14:58:57 +02:00
parent 68de0eba1a
commit db60d3cfa9

View File

@ -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