From 99c3bc6455d51a7ab5fc86414f878de89ad2cb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Thu, 21 Feb 2019 14:00:45 +0100 Subject: [PATCH] Fix string comparison with class name --- scm-ui-components/packages/ui-components/src/layout/Page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a034b4afbb..dc4d32a75c 100644 --- a/scm-ui-components/packages/ui-components/src/layout/Page.js +++ b/scm-ui-components/packages/ui-components/src/layout/Page.js @@ -6,6 +6,7 @@ import Title from "./Title"; import Subtitle from "./Subtitle"; import injectSheet from "react-jss"; import classNames from "classnames"; +import PageActions from "./PageActions"; type Props = { title?: string, @@ -46,7 +47,7 @@ class Page extends React.Component { let content = null; let pageActionsExists = false; React.Children.forEach(children, child => { - if (child && child.type.name === "PageActions") { + if (child && child.type.name === PageActions.name) { content = child; pageActionsExists = true; }