mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
corrected incorrect if condition frame
This commit is contained in:
@@ -51,7 +51,7 @@ class Page extends React.Component<Props> {
|
|||||||
let pageActionsExists = false;
|
let pageActionsExists = false;
|
||||||
React.Children.forEach(children, child => {
|
React.Children.forEach(children, child => {
|
||||||
if (child && !error) {
|
if (child && !error) {
|
||||||
if (child.type.name === PageActions.name)
|
if (child.type.name === PageActions.name) {
|
||||||
pageActions = (
|
pageActions = (
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
@@ -64,6 +64,7 @@ class Page extends React.Component<Props> {
|
|||||||
);
|
);
|
||||||
pageActionsExists = true;
|
pageActionsExists = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
let underline = pageActionsExists ? (
|
let underline = pageActionsExists ? (
|
||||||
<hr className="header-with-actions" />
|
<hr className="header-with-actions" />
|
||||||
|
|||||||
Reference in New Issue
Block a user