Skip to content

Commit

Permalink
Fix toolbar pattern test failing with chrome (make test-dev) because …
Browse files Browse the repository at this point in the history
…there is no element with personal-bar-container id (indeed this is defined in plone/app/layout/viewlets/toolbar.pt)
  • Loading branch information
vincentfretin committed Jun 28, 2020
1 parent 2f8c6cc commit c93a84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockup/patterns/toolbar/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c93a84e

Please sign in to comment.