Make sure there is toolbar before using it

This commit is contained in:
Hadi Nategh 2018-06-25 14:58:57 +02:00
parent 2353439517
commit 018a6a4d09

View File

@ -6115,7 +6115,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