From d2c2a1b23cfe96d092a0a08f83bbe799f5cce2d2 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Wed, 24 Apr 2019 16:45:20 +0200 Subject: [PATCH] corrected incorrect if condition frame --- scm-ui-components/packages/ui-components/src/layout/Page.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/layout/Page.js b/scm-ui-components/packages/ui-components/src/layout/Page.js index ef4363cd8f..403bae91e6 100644 --- a/scm-ui-components/packages/ui-components/src/layout/Page.js +++ b/scm-ui-components/packages/ui-components/src/layout/Page.js @@ -51,7 +51,7 @@ class Page extends React.Component { let pageActionsExists = false; React.Children.forEach(children, child => { if (child && !error) { - if (child.type.name === PageActions.name) + if (child.type.name === PageActions.name) { pageActions = (
{ {child}
); - pageActionsExists = true; + pageActionsExists = true; + } } }); let underline = pageActionsExists ? (