diff --git a/mockup/patterns/toolbar/pattern.js b/mockup/patterns/toolbar/pattern.js index e7f1330a2..35fa3d426 100644 --- a/mockup/patterns/toolbar/pattern.js +++ b/mockup/patterns/toolbar/pattern.js @@ -469,7 +469,7 @@ define([ } // check if the personal toolbar is not offseted if there isn't enough space // and we already have the plone-toolbar-more-options added to the page. - if ($pers_bar_container[0].offsetTop !== 0) { + if ($pers_bar_container[0] && $pers_bar_container[0].offsetTop !== 0) { that.cloneViewsIntoSubset( $pers_bar_container, $content_views,