mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25: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(
|
||||||
@@ -62,7 +62,8 @@ class Page extends React.Component<Props> {
|
|||||||
{child}
|
{child}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
pageActionsExists = true;
|
pageActionsExists = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let underline = pageActionsExists ? (
|
let underline = pageActionsExists ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user