From c93a84e6cacbc64b0d93c428d7e997efafad050b Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 28 Jun 2020 14:44:04 +0200 Subject: [PATCH] Fix toolbar pattern test failing with chrome (make test-dev) because there is no element with personal-bar-container id (indeed this is defined in plone/app/layout/viewlets/toolbar.pt) --- mockup/patterns/toolbar/pattern.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,