prevent typeError for undefined button when logged out

pull/1/head
ansuz 4 years ago
parent c4e1b5f7d4
commit 0f4013505d

@ -2070,7 +2070,9 @@ define([
// Import template
var $template = common.createButton('importtemplate', true, {}, openTemplatePicker);
if ($template && typeof($template.appendTo) === 'function') {
$template.appendTo(toolbar.$drawer);
}
})();
}

Loading…
Cancel
Save